-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[Test] Additional logging for RemoteClusterClientTests #44124
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
Conversation
Use RemoteClusterConnectionTests#startTransport instead of MockTransportService.createNewService to start the local node transport service, which implicitely calls "newService.start()" and "newService.acceptIncomingRequests()".
Pinging @elastic/es-search |
@original-brownbear would you mind taking a look at this since we already talked about the problem on the issue? If not let me know if I should ask somebody else to review. I'm not sure this fixed things but it looks like it should do the same as before, maybe the order of execution is somewhat safer than in the existing test. |
@cbuescher hmm, but the stacktrace we have suggests that the latch was never counted down?
this currently fails on the last line (the |
I'm also wondering if this might be explained by some port collision, now resolved in #43983 (I can't immediately see how, but I think if we added the suggested info level logging and waited for the next failure then we can rule out it was a port collision ... because the next failure shouldn't come) |
My guess was that this might happen after the test timeout though. But I will revert and add the logging you suggested to get more information on this question. If this doesn't fail again soon we can also maybe close and blame it on #43983? But I'll add the logging instead of the changes I made earlier. |
Thanks, I like that plan :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@elasticmachine run elasticsearch-ci/packaging-sample |
@elasticmachine run elasticsearch-ci/bwc |
@elasticmachine update branch |
Use RemoteClusterConnectionTests#startTransport instead of
MockTransportService.createNewService to start the local node transport service.
This implicitely calls
newService.start()
andnewService.acceptIncomingRequests()
but potentially doesn't run into the same kind of deadlock situation that we occasionally saw
on recent test runs.
Closes #41745