-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Test reliably hangs waiting on response from WireMock (though some reliably pass) #614
Comments
Thanks for reporting. I'll try and take a look on the way home today. |
Thanks, I guess I should have mentioned |
Yeah, I spotted that in .travis.yml. I've managed to get it to hang on my laptop now. For me at least, it looks like WM is blocking when trying to write log messages (thread dumps show this), which is odd. I've noticed you've got log4j 2 in the deps. I've not got round to using this yet so I'm not familiar. Is there anything in how this is configured that might be the issue? |
That's interesting about the logs. Most of what |
To add to that, my tests are already deep inside logging when they send a request, so if this is locking up during logging then it's possible that it's a logging deadlock issue. When I used a debugger I only managed to find the request side |
Here's a snippet from my thread dump:
|
Thank you! This has got to be a logging deadlock that I'll have to figure out. |
No probs. Hope it's easy to track down. |
@bretthoerner did you ever figure out the cause for this one? |
The
wiremock
branch ofraven-java
is a reproducible case for me: getsentry/sentry-java#316The main project,
raven
and the first listed submodule,raven-android
, use WireMock and succeed. The next submodule,raven-log4j
hangs 100% of the time waiting on a response from WireMock. I've traced it down to a.read()
call deep down insideHttpURLConnection
. External calls fromcurl
also fail when this test is running (thoughjava
is listening on8080
...). In the tests that pass I can usecurl
and get a 404 at/
as expected.I've tried with the
WireMockClassRule
also, since I saw that mentioned as a fix for hanging in another issue, but no dice.Any thoughts? Thanks!
The text was updated successfully, but these errors were encountered: