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

Unit test demonstrating racy HystrixRequestLog #848

Merged
merged 2 commits into from
Aug 6, 2015

Conversation

mattrjacobs
Copy link
Contributor

Demonstrates problem from #847

@cloudbees-pull-request-builder

NetflixOSS » Hystrix » Hystrix-pull-requests #150 FAILURE
Looks like there's a problem with this pull request

@mattrjacobs
Copy link
Contributor Author

Actually, the initial test wasn't accurate.

It was spinning up 5 Observables, then creating a merged Observable out of them. Given all 5 were throwing an Exception, the result of merge would also throw upon receipt of the first onError, possibly leaving the other 4 outstanding while the RequestLog was being queried.

The next test is just starting a single command, awaiting it to throw and then checking the request log. I haven't seen this fail locally, so am waiting to see if I can reproduce it on Cloudbees/Travis

@cloudbees-pull-request-builder

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

mattrjacobs added a commit that referenced this pull request Aug 6, 2015
Unit test demonstrating racy HystrixRequestLog
@mattrjacobs mattrjacobs merged commit 5b7bd0a into Netflix:master Aug 6, 2015
@mattrjacobs mattrjacobs deleted the request-log-race branch August 6, 2015 18:05
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.

2 participants