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

Bugfix/make share file null again #159

Closed

Conversation

rakete
Copy link

@rakete rakete commented Mar 17, 2022

No description provided.

…ion points are mutated by multiple go routines

- happens only when there are multiple queries being spawned for
  different insertion points, e.g. both FederatedInitiative and
  FederatedFile in Manufacturer
- fixed by just making a copy of the startingPoints (which is a
  reference to the step insertion points)
- I think when a sub-query finishes to quickly it can cause the go
  routine(the one accumulating the result) in Execute to finish too
  early, leaving insertionPoints in the final returned result unresolved
  although their sub-queries queries were successful(or are still
  running at that point)
- the issue can be best reproduced by running
  go test -v -count=1 -race github.com/nautilus/gateway -run TestExecutor_insertIntoLists
- after this fix I ran the -race test for hundreds of times without
  seeing the issue againg
@rakete rakete closed this Mar 17, 2022
@Daomaster Daomaster deleted the bugfix/make-shareFile-null-again branch March 17, 2022 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant