-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[CCR] Fix request serialization bug #34917
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
and some parameters that were not set in tests.
Pinging @elastic/es-distributed |
@@ -137,9 +137,6 @@ public void testAutoFollowParameterAreDelegated() throws Exception { | |||
if (randomBoolean()) { | |||
request.setMaxReadRequestOperationCount(randomIntBetween(0, Integer.MAX_VALUE)); | |||
} | |||
if (randomBoolean()) { |
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.
removed, because is a duplicate if statement
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 @martijnvg for fixing this.
@@ -266,6 +266,8 @@ public void readFrom(final StreamInput in) throws IOException { | |||
maxReadRequestOperationCount = in.readOptionalVInt(); | |||
maxOutstandingReadRequests = in.readOptionalVInt(); | |||
maxReadRequestSize = in.readOptionalWriteable(ByteSizeValue::new); |
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.
Would you mind moving maxReadRequestSize above maxOutstandingReadRequests so that we have the same order for both read and write.
and some parameters that were not set in tests.
and some parameters that were not set in tests.
and some parameters that were not set in tests.
and some parameters that were not set in tests.