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
Remove redundant version checks in transport serialisation #4731
Conversation
this looks great - we can pull this in post RC1 |
} else { | ||
peroclate = new PercolateStats(); | ||
} | ||
peroclate = PercolateStats.readPercolateStats(in); |
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.
typo! :)
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.
will fix :)
I think we should be able to remove the read/writeTimeout methods in |
@javanna Make sense, I'll remove these methods. |
Removed AcknowledgedRequest#readTimeout(StreamInput, Version) and AcknowledgedRequest#writeTimeout(StreamOutput, Version)
Updated PR to implement Luca's feedback. |
|
||
} | ||
|
||
@Test | ||
public void testDeleteWarmerTimeoutBwComp_Post0906Format() throws Exception { |
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.
just nitpicking, maybe we could change the name of the test method that's left, or even remove it? I don't think we need to explicitly test the serialization here anymore...
I left a small comment, but looks great @martijnvg , thanks! |
@javanna Thanks for the feedback. Pushed to master, 1.x and 1.0 branches. |
Since 1.0 breaks transport serialisation support with 0.90.x, it doesn't make sense to do version checks in the serialisation code. This will clean up the code (writeTo() and readFrom()) and allows ES to start fresh.