-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Remove ClusterStateSerializationTests
#130877
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
These tests do not seem valuable anymore, now that multi-project has been merged some time ago. Additionally, creating objects for a cluster state this way is tricky, as those objects might get new features/fields, which would break serialization. Closes elastic#130872
|
Pinging @elastic/es-data-management (Team:Data Management) |
I don't think this is a valid reason? In stateful, 9.0 and 8.19 are before multi-project and we must ensure 9.1 and future 9.x versions communicate with them correctly. So it seems to me that the test still has value till version 10. The test failure is because cluster state with a non-default project cannot be serialized to a version that is before multi-project. This is in fact the correct behaviour. So I think we should fix it by catching and asserting the expected exceptions when the test randomization falls into this case. |
As I understood it, these tests were mostly created because we didn't have any BwC tests running between Also, these tests only cover a small part of the cluster state serialization; they only create a data stream with some indices and some nodes. The BwC integration tests have far more elaborate coverage. Finally, I tried to fix the test by using a different helper method to create the data stream, but that used features that were added recently, and thus breaks serialization altogether (because it's trying to serialize features that were introduced after MP was merged). I guess keeping the test setup unchanged and simply catching the exception for non-default projects is a simple fix, but as I said before, I'm not convinced yet on the value of these tests. |
|
It's a more targeted version for testing BWC serializaiton. Yeah it should also be mostly covered by other more general BWC tests, except for maybe throwing |
ywangd
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
These tests do not seem valuable anymore, now that multi-project has been merged some time ago. Additionally, creating objects for a cluster state this way is tricky, as those objects might get new features/fields, which would break serialization.
Closes #130872