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

Race condition in streams/microservices/OrdersService.java #115

Open
NorthFuture opened this issue May 10, 2018 · 0 comments
Open

Race condition in streams/microservices/OrdersService.java #115

NorthFuture opened this issue May 10, 2018 · 0 comments

Comments

@NorthFuture
Copy link

In the function fetchLocal it's being checked if the order is in the store: if not a callback is being put in the outstandingRequests hashmap. in this way when a message arrive the maybeCompleteLongPollGet can invoke the callback and complete the function.

However after testing the presence of the order in the store (line 200) the message related to that order might have arrived in the meanwhile, but the callback is not yet int the hasmap, so the response is never completed.

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

No branches or pull requests

1 participant