|
36 | 36 | import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_RETRY_DELAY_FIELD;
|
37 | 37 | import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_WRITE_BUFFER_COUNT;
|
38 | 38 | import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_WRITE_BUFFER_SIZE;
|
| 39 | +import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_WRITE_REQUEST_OPERATION_COUNT; |
| 40 | +import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.MAX_WRITE_REQUEST_SIZE; |
39 | 41 | import static org.elasticsearch.xpack.core.ccr.action.ResumeFollowAction.Request.READ_POLL_TIMEOUT;
|
40 | 42 |
|
41 | 43 | public final class PutFollowAction extends Action<
|
@@ -71,12 +73,18 @@ public static class Request extends AcknowledgedRequest<Request> implements Indi
|
71 | 73 | PARSER.declareString(Request::setLeaderIndex, LEADER_INDEX_FIELD);
|
72 | 74 | PARSER.declareString((req, val) -> req.followRequest.setFollowerIndex(val), FOLLOWER_INDEX_FIELD);
|
73 | 75 | PARSER.declareInt((req, val) -> req.followRequest.setMaxReadRequestOperationCount(val), MAX_READ_REQUEST_OPERATION_COUNT);
|
74 |
| - PARSER.declareInt((req, val) -> req.followRequest.setMaxOutstandingReadRequests(val), MAX_OUTSTANDING_READ_REQUESTS); |
75 | 76 | PARSER.declareField(
|
76 | 77 | (req, val) -> req.followRequest.setMaxReadRequestSize(val),
|
77 | 78 | (p, c) -> ByteSizeValue.parseBytesSizeValue(p.text(), MAX_READ_REQUEST_SIZE.getPreferredName()),
|
78 | 79 | MAX_READ_REQUEST_SIZE,
|
79 | 80 | ObjectParser.ValueType.STRING);
|
| 81 | + PARSER.declareInt((req, val) -> req.followRequest.setMaxOutstandingReadRequests(val), MAX_OUTSTANDING_READ_REQUESTS); |
| 82 | + PARSER.declareInt((req, val) -> req.followRequest.setMaxWriteRequestOperationCount(val), MAX_WRITE_REQUEST_OPERATION_COUNT); |
| 83 | + PARSER.declareField( |
| 84 | + (req, val) -> req.followRequest.setMaxWriteRequestSize(val), |
| 85 | + (p, c) -> ByteSizeValue.parseBytesSizeValue(p.text(), MAX_WRITE_REQUEST_SIZE.getPreferredName()), |
| 86 | + MAX_WRITE_REQUEST_SIZE, |
| 87 | + ObjectParser.ValueType.STRING); |
80 | 88 | PARSER.declareInt((req, val) -> req.followRequest.setMaxOutstandingWriteRequests(val), MAX_OUTSTANDING_WRITE_REQUESTS);
|
81 | 89 | PARSER.declareInt((req, val) -> req.followRequest.setMaxWriteBufferCount(val), MAX_WRITE_BUFFER_COUNT);
|
82 | 90 | PARSER.declareField(
|
|
0 commit comments