-
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
Respect CloseIndexRequest#waitForActiveShards in HLRC #67374
Respect CloseIndexRequest#waitForActiveShards in HLRC #67374
Conversation
Some changes for `master` that make elastic#67246 a bit easier. Relates elastic#67158
Pinging @elastic/es-distributed (Team:Distributed) |
@@ -137,6 +137,7 @@ static Request closeIndex(CloseIndexRequest closeIndexRequest) { | |||
parameters.withTimeout(closeIndexRequest.timeout()); | |||
parameters.withMasterTimeout(closeIndexRequest.masterNodeTimeout()); | |||
parameters.withIndicesOptions(closeIndexRequest.indicesOptions()); | |||
parameters.withWaitForActiveShards(closeIndexRequest.waitForActiveShards()); |
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 is actually a bugfix, we didn't respect this parameter before this change.
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.
Nice catch.
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
@@ -137,6 +137,7 @@ static Request closeIndex(CloseIndexRequest closeIndexRequest) { | |||
parameters.withTimeout(closeIndexRequest.timeout()); | |||
parameters.withMasterTimeout(closeIndexRequest.masterNodeTimeout()); | |||
parameters.withIndicesOptions(closeIndexRequest.indicesOptions()); | |||
parameters.withWaitForActiveShards(closeIndexRequest.waitForActiveShards()); |
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.
Nice catch.
Some changes for
master
that make #67246 a bit easier.Relates #67158