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

Make methods of Hystrix class thread-safe #1039

Conversation

mattrjacobs
Copy link
Contributor

Addresses #1012. The testMultipleSemaphoreObservableCommandsInFlight unit test failed consistently when using a LinkedList instead of the ConcurrentStack.

Would you mind taking a look, @mzeijen? Thanks again for bringing this up. I'll add the deprecation as the next commit if you think this looks like the right approach.

@cloudbees-pull-request-builder

NetflixOSS » Hystrix » Hystrix-pull-requests #297 SUCCESS
This pull request looks good

@mattrjacobs
Copy link
Contributor Author

I'm going to merge this as-is, and open up a new issue for how Hystrix#getCurrentThreadExecutingCommand() should handle multiple concurrent semaphore-isolated HystrixObservableCommands, as I think deprecation is 1 solution, but possibly not the only

mattrjacobs added a commit that referenced this pull request Jan 8, 2016
…ing-command-list-thread-safe

Make methods of Hystrix class thread-safe
@mattrjacobs mattrjacobs merged commit a7d4696 into Netflix:master Jan 8, 2016
@mattrjacobs mattrjacobs deleted the make-hystrix-current-executing-command-list-thread-safe branch January 8, 2016 18:33
@mzeijen
Copy link

mzeijen commented Jan 11, 2016

I reviewed the code and it looks good!

Great that you could reproduce it in the unit test. As soon as the next Hystrix version is released I will upgrade it in our application and check the logging to see if the problem is gone.

For now I will close the issue.

Thanks for fixing it 👍

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

3 participants