-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
migrate some MasterNodeRequest subclasses to Writeable Readers #26463
Conversation
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.
Other than the leftover I think this is good.
@@ -693,6 +694,9 @@ public static void assertVersionSerializable(Version version, Streamable streama | |||
// and the readFrom method throws an exception if called | |||
Streamable newInstanceFromStream = tryCreateFromStream(streamable, input); | |||
if (newInstanceFromStream == null) { | |||
if (newInstance instanceof ClusterAllocationExplainRequest) { | |||
System.out.println("what?"); |
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.
This looks like a leftover.
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.
oh me oh my. indeed. I was debugging. will remove. thanks!
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.
If you add // nocommit
any time that you add a debug line like this, the build will help you remember to remove it (a pre-commit check will fail).
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 the protip! I will
2bf37df
to
4821aeb
Compare
4821aeb
to
6db927e
Compare
merging even though build failed. Build failed due to bwc tests thinking 6.0-beta2 is the current 6.0 build |
migrating more classes to implement Writeable.Reader functional interfaces
and deprecate Streamable's readFrom.
The main goal for this PR is to help transition the MasterNodeRequest subclassed request objects. Since there are more than I'd like to count, more will follow in another PR.
AcknowledgedRequests will be next