File tree 4 files changed +22
-3
lines changed
ccr/src/test/java/org/elasticsearch/xpack/ccr
core/src/main/java/org/elasticsearch/xpack/core/ccr/action
4 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,6 @@ public void testAutoFollowParameterAreDelegated() throws Exception {
137
137
if (randomBoolean ()) {
138
138
request .setMaxReadRequestOperationCount (randomIntBetween (0 , Integer .MAX_VALUE ));
139
139
}
140
- if (randomBoolean ()) {
141
- request .setMaxWriteBufferSize (new ByteSizeValue (randomNonNegativeLong ()));
142
- }
143
140
if (randomBoolean ()) {
144
141
request .setMaxReadRequestSize (new ByteSizeValue (randomNonNegativeLong (), ByteSizeUnit .BYTES ));
145
142
}
@@ -155,6 +152,9 @@ public void testAutoFollowParameterAreDelegated() throws Exception {
155
152
if (randomBoolean ()) {
156
153
request .setMaxWriteBufferSize (new ByteSizeValue (randomNonNegativeLong (), ByteSizeUnit .BYTES ));
157
154
}
155
+ if (randomBoolean ()) {
156
+ request .setMaxWriteRequestSize (new ByteSizeValue (randomNonNegativeLong ()));
157
+ }
158
158
assertTrue (followerClient ().execute (PutAutoFollowPatternAction .INSTANCE , request ).actionGet ().isAcknowledged ());
159
159
160
160
createLeaderIndex ("logs-201901" , leaderIndexSettings );
Original file line number Diff line number Diff line change @@ -53,6 +53,15 @@ protected PutAutoFollowPatternAction.Request createTestInstance() {
53
53
if (randomBoolean ()) {
54
54
request .setMaxRetryDelay (TimeValue .timeValueMillis (500 ));
55
55
}
56
+ if (randomBoolean ()) {
57
+ request .setMaxWriteRequestOperationCount (randomIntBetween (0 , Integer .MAX_VALUE ));
58
+ }
59
+ if (randomBoolean ()) {
60
+ request .setMaxWriteBufferSize (new ByteSizeValue (randomNonNegativeLong ()));
61
+ }
62
+ if (randomBoolean ()) {
63
+ request .setMaxWriteRequestSize (new ByteSizeValue (randomNonNegativeLong ()));
64
+ }
56
65
if (randomBoolean ()) {
57
66
request .setMaxReadRequestOperationCount (randomIntBetween (0 , Integer .MAX_VALUE ));
58
67
}
Original file line number Diff line number Diff line change @@ -59,6 +59,12 @@ static ResumeFollowAction.Request createTestRequest() {
59
59
if (randomBoolean ()) {
60
60
request .setMaxWriteBufferCount (randomIntBetween (1 , Integer .MAX_VALUE ));
61
61
}
62
+ if (randomBoolean ()) {
63
+ request .setMaxWriteRequestOperationCount (randomIntBetween (1 , Integer .MAX_VALUE ));
64
+ }
65
+ if (randomBoolean ()) {
66
+ request .setMaxWriteRequestSize (new ByteSizeValue (randomNonNegativeLong ()));
67
+ }
62
68
if (randomBoolean ()) {
63
69
request .setMaxWriteBufferSize (new ByteSizeValue (randomNonNegativeLong (), ByteSizeUnit .BYTES ));
64
70
}
Original file line number Diff line number Diff line change @@ -271,6 +271,8 @@ public void readFrom(final StreamInput in) throws IOException {
271
271
maxReadRequestOperationCount = in .readOptionalVInt ();
272
272
maxOutstandingReadRequests = in .readOptionalVInt ();
273
273
maxReadRequestSize = in .readOptionalWriteable (ByteSizeValue ::new );
274
+ maxWriteRequestOperationCount = in .readOptionalVInt ();
275
+ maxWriteRequestSize = in .readOptionalWriteable (ByteSizeValue ::new );
274
276
maxOutstandingWriteRequests = in .readOptionalVInt ();
275
277
maxWriteBufferCount = in .readOptionalVInt ();
276
278
maxWriteBufferSize = in .readOptionalWriteable (ByteSizeValue ::new );
@@ -285,6 +287,8 @@ public void writeTo(final StreamOutput out) throws IOException {
285
287
out .writeOptionalVInt (maxReadRequestOperationCount );
286
288
out .writeOptionalVInt (maxOutstandingReadRequests );
287
289
out .writeOptionalWriteable (maxReadRequestSize );
290
+ out .writeOptionalVInt (maxWriteRequestOperationCount );
291
+ out .writeOptionalWriteable (maxWriteRequestSize );
288
292
out .writeOptionalVInt (maxOutstandingWriteRequests );
289
293
out .writeOptionalVInt (maxWriteBufferCount );
290
294
out .writeOptionalWriteable (maxWriteBufferSize );
You can’t perform that action at this time.
0 commit comments