-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix Incorrect Transport Response Handler Type #38264
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
* The response type here is not empty and was always wrong but this only became visible now that 0a604e3 was introduced * As a result of 0a604e3 we started actually handling the response of this request and logging/handling exceptions before that we simply dropped the classcast exception here quietly using the empty response handler * Closes #38226
|
Pinging @elastic/es-distributed |
dnhatn
left a comment
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. Thanks @original-brownbear.
|
@dnhatn thanks for the quick review, bad news though: Looking into that now. I'd suggest if I can't fix it quickly I re-mute the tests and at least merge this fix to cut back on the noise? It seems like this could hit other tests that haven't yet failed too randomly. |
|
Fixed in 7b26929 The issue was that the changed busy assert block died on a normal exception when concurrently loading the repository data (I guess we could look into making the behaviour of the FS repository here nicer eventually): |
|
@dnhatn can you take another look please? :) |
|
Jenkins run elasticsearch-ci/2 |
dnhatn
left a comment
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.
Thanks for an extra iteration @original-brownbear.
| client.admin().cluster().prepareSnapshotStatus("repository").setSnapshots("snap").get(); | ||
| assertThat(status.getSnapshots().iterator().next().getState(), equalTo(State.ABORTED)); | ||
| } catch (Exception e) { | ||
| throw new AssertionError(e); |
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.
maybe add a comment to say that here we rethrow in AssertionError to force assertBusy to retry.
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.
Sure, I added it :)
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.
@original-brownbear this assertBusy failed on a local ./gradlew check - here is the log from the test:
testAbortedSnapshotDuringInitDoesNotStart-failure.log.gz.
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.
@DaveCTurner thanks! I think I have an idea where this is coming from still ... Will fix later/tomorrow :)
of this request and logging/handling exceptions before that we simply dropped the class cast exception here quietly using the empty response handler
>non-issuebecause this never made it into a release