-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
fix a few versionAdded values in ElasticsearchExceptions #37877
Conversation
TooManyBucketsException was introduced in v6.2 and SnapshotInProgressException was introduced in v6.7
Pinging @elastic/es-core-infra |
I am not familiar with the semantics of versionAdded. I haven't seen any issues |
It's used here, to decide whether to serialise the exception "properly" or whether to use a elasticsearch/server/src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java Lines 948 to 952 in 787acb1
This means that, with today's Line 73 in c8905da
Unfortunately you can only really catch this with a mixed-cluster REST test. I think we should consider adding an assertion that checks that once we've deserialised an exception from a remote node we believe that we could serialise it back to that node based on its version. I think that'd help catch this kind of asymmetry. |
Cool, thanks. will look into adding this |
@DaveCTurner I decided just to add unit tests for the serialization. Line 73 in c8905da
Not sure if the above line is really testable since all the actions in ILM are done on the same node. So either the master node requested to delete or close an index on an upgraded 6.7 node, in which case, it would pick this up with no issue. This does make me realize that running these ILM steps against 6.6 nodes would cause things to fail. That being said, we are in the process of writing documentation basically saying that mixed-clusters is not supported let me know what you think! |
run elasticsearch-ci/default-distro |
run elasticsearch-ci/1 |
hey @DaveCTurner, mind taking another look? |
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, LGTM, sorry for the delay.
thanks David! |
…ersion * elastic/master: Do not set up NodeAndClusterIdStateListener in test (elastic#38110) ML: better handle task state race condition (elastic#38040) Soft-deletes policy should always fetch latest leases (elastic#37940) Handle scheduler exceptions (elastic#38014) Minor logging improvements (elastic#38084) Fix Painless void return bug (elastic#38046) Update PutFollowAction serialization post-backport (elastic#37989) fix a few versionAdded values in ElasticsearchExceptions (elastic#37877) Reenable BWC tests after backport of elastic#37899 (elastic#38093) Mute failing test Mute failing test Fail start on obsolete indices documentation (elastic#37786) SQL: Implement FIRST/LAST aggregate functions (elastic#37936) Un-mute NoMasterNodeIT.testNoMasterActionsWriteMasterBlock remove unused parser fields in RemoteResponseParsers
TooManyBucketsException was introduced in v6.2
and SnapshotInProgressException was introduced in v6.7