Skip to content

Respect CloseIndexRequest#waitForActiveShards in HLRC#67374

Merged
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2021-01-12-close-index-request-tidying
Jan 13, 2021
Merged

Respect CloseIndexRequest#waitForActiveShards in HLRC#67374
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2021-01-12-close-index-request-tidying

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Some changes for master that make #67246 a bit easier.

Relates #67158

Some changes for `master` that make elastic#67246 a bit easier.

Relates elastic#67158
@DaveCTurner DaveCTurner added >bug :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. v8.0.0 labels Jan 12, 2021
@DaveCTurner DaveCTurner requested a review from tlrx January 12, 2021 17:38
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Jan 12, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

parameters.withTimeout(closeIndexRequest.timeout());
parameters.withMasterTimeout(closeIndexRequest.masterNodeTimeout());
parameters.withIndicesOptions(closeIndexRequest.indicesOptions());
parameters.withWaitForActiveShards(closeIndexRequest.waitForActiveShards());
Copy link
Copy Markdown
Member Author

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch.

Copy link
Copy Markdown
Member

@tlrx tlrx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

parameters.withTimeout(closeIndexRequest.timeout());
parameters.withMasterTimeout(closeIndexRequest.masterNodeTimeout());
parameters.withIndicesOptions(closeIndexRequest.indicesOptions());
parameters.withWaitForActiveShards(closeIndexRequest.waitForActiveShards());
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch.

@DaveCTurner DaveCTurner merged commit c20b92f into elastic:master Jan 13, 2021
@DaveCTurner DaveCTurner changed the title Minor tidy-up for close-index REST requests Respect CloseIndexRequest#waitForActiveShards in HLRC Jan 13, 2021
@DaveCTurner DaveCTurner deleted the 2021-01-12-close-index-request-tidying branch January 13, 2021 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. Team:Distributed Meta label for distributed team. v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants