Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FederatedStore While Operation Looping Bug #3166

Closed
GCHQDev404 opened this issue Mar 5, 2024 · 0 comments · Fixed by #3167
Closed

FederatedStore While Operation Looping Bug #3166

GCHQDev404 opened this issue Mar 5, 2024 · 0 comments · Fixed by #3167
Assignees
Labels
bug Confirmed or suspected bug
Milestone

Comments

@GCHQDev404
Copy link
Contributor

GCHQDev404 commented Mar 5, 2024

Describe the bug
A While operation performed on the FederatedStore incorrectly triggers an infinite looping exception.

To Reproduce
Perform an operation chain within the While or Join. The operation chain chain should contain a operation which is not overridden with using a FederatedStore specific Handler.

Expected behaviour
While loops and joins of the operations should not trigger an "federated infinite looping" exception.

@GCHQDev404 GCHQDev404 added the bug Confirmed or suspected bug label Mar 5, 2024
@GCHQDev404 GCHQDev404 self-assigned this Mar 5, 2024
@GCHQDev404 GCHQDev404 changed the title FederatedStore While Looping Bug FederatedStore While Operation Looping Bug Mar 5, 2024
GCHQDev404 added a commit that referenced this issue Mar 5, 2024
GCHQDev404 added a commit that referenced this issue Mar 5, 2024
GCHQDev404 added a commit that referenced this issue Mar 5, 2024
GCHQDev404 added a commit that referenced this issue Mar 12, 2024
…join or while loop. Other information should be retained.
GCHQDev404 added a commit that referenced this issue Mar 14, 2024
@GCHQDeveloper314 GCHQDeveloper314 added this to the v2.3.0 milestone Mar 15, 2024
GCHQDev404 added a commit that referenced this issue Mar 22, 2024
…ration-looping-bug' into gh-3166-FederatedStore-while-operation-looping-bug
GCHQDeveloper314 added a commit that referenced this issue Jun 7, 2024
* gh-3166 test to replicate issue.

* gh-3166 added test to replicate issue

* gh-3166 Make options field distinct in the While Looping logic

* gh-3166 spotless

* gh-3166 setting up the test to replicate the issue with json.

* gh-3166 ShallowCloneWithDeepOptions so options is not preserved in a join or while loop. Other information should be retained.

* gh-3166 temp removing the usage of new Join and while for testing

* gh-3166 json added to try replicate bug

* gh-3166 json added to try replicate bug

* Update JoinHandler.java

* Test show log.

* changes get rid of logs error.

* Test changes to detect successful looping.

* test  tidy up

* Tidy up.

* rename

* copyright

* simplified the test

* import order

* Apply suggestions from code review

Co-authored-by: GCHQDeveloper314 <94527357+GCHQDeveloper314@users.noreply.github.com>

* Make use of Util method
Adding the FederatedStoreTestUtil.getFederatedStorePropertiesWithHashMapCache method instead of manually configuring Cache object

---------

Co-authored-by: GCHQDeveloper314 <94527357+GCHQDeveloper314@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed or suspected bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants