MINOR: Add Timed wait to SslTransportLayerTest.testNetworkThreadTimeRecorded#4811
Conversation
|
@rajinisivaram SslTransportLayerTest.testNetworkThreadTimeRecorded test is consistently getting stuck in infinite while loop (check below stack trace) on my machine. looks like some timing issues. spent some time to debug the issue, but no success. For now, i changed the while loop to timed wait loop. Pls take a look. |
|
retest this please. |
rajinisivaram
left a comment
There was a problem hiding this comment.
@omkreddy Thanks for the PR. Left a minor comment. So does this fail consistently with the PR? If so, can you run with debug logging and raise a JIRA with the logs? Thanks.
| } catch (IOException e) { | ||
| return false; | ||
| } | ||
| return selector.completedReceives().size() > 0; |
There was a problem hiding this comment.
Could use !isEmpty() instead of .size()?
There was a problem hiding this comment.
@rajinisivaram Thanks for the review. test is failing most of the times. I will create JIRA with relevant logs.
rajinisivaram
left a comment
There was a problem hiding this comment.
@omkreddy Thanks for the update, LGTM.
|
Test failures are unrelated, merging to trunk. |
No description provided.