Skip to content

Introduce ?wait_for_active_shards=index-setting#67158

Merged
DaveCTurner merged 2 commits intoelastic:masterfrom
DaveCTurner:2021-01-07-deprecate-wait_for_active_shards-default-for-close-index
Jan 11, 2021
Merged

Introduce ?wait_for_active_shards=index-setting#67158
DaveCTurner merged 2 commits intoelastic:masterfrom
DaveCTurner:2021-01-07-deprecate-wait_for_active_shards-default-for-close-index

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

In 7.x the close indices API defaulted to ?wait_for_active_shards=0
but from 8.0 it defaults to respecting the index settings instead. This
commit introduces the index-setting value for this parameter on this
API allowing users to opt-in to the future behaviour today, and emits a
deprecation warning indicating that the default no longer needs to be
used and will be unsupported in future.

In 7.x a follow up PR will introduce support for the same
index-setting value for this parameter and will emit deprecation
warnings if users try and use the default instead.

Relates #66419

In 7.x the close indices API defaulted to `?wait_for_active_shards=0`
but from 8.0 it defaults to respecting the index settings instead.  This
commit introduces the `index-setting` value for this parameter on this
API allowing users to opt-in to the future behaviour today, and emits a
deprecation warning indicating that the default no longer needs to be
used and will be unsupported in future.

In 7.x a follow up PR will introduce support for the same
`index-setting` value for this parameter and will emit deprecation
warnings if users try and use the default instead.

Relates elastic#66419
@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 7, 2021
@DaveCTurner DaveCTurner requested a review from tlrx January 7, 2021 16:09
@DaveCTurner DaveCTurner marked this pull request as ready for review January 7, 2021 16:09
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Jan 7, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@DaveCTurner DaveCTurner merged commit ec08f92 into elastic:master Jan 11, 2021
@DaveCTurner
Copy link
Copy Markdown
Member Author

Thanks @tlrx

@DaveCTurner DaveCTurner deleted the 2021-01-07-deprecate-wait_for_active_shards-default-for-close-index branch January 11, 2021 08:33
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 11, 2021
In 7.x the close indices API defaults to `?wait_for_active_shards=0` but
from 8.0 it will default to respecting the index settings instead. This
commit introduces the `index-setting` value for this parameter on this
API allowing users to opt-in to the future behaviour today, and starts
to emit a deprecation warning for users that use the default.

Relates elastic#67158
Closes elastic#66419
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 12, 2021
Some changes for `master` that make elastic#67246 a bit easier.

Relates elastic#67158
DaveCTurner added a commit that referenced this pull request Jan 13, 2021
Also includes some changes for `master` that make #67246 a bit smaller.

Relates #67158
DaveCTurner added a commit that referenced this pull request Jan 13, 2021
In 7.x the close indices API defaults to `?wait_for_active_shards=0` but
from 8.0 it will default to respecting the index settings instead. This
commit introduces the `index-setting` value for this parameter on this
API allowing users to opt-in to the future behaviour today, and starts
to emit a deprecation warning for users that use the default.

Relates #67158
Closes #66419
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Jan 14, 2021
In 7.x the close indices API defaults to `?wait_for_active_shards=0` but
from 8.0 it will default to respecting the index settings instead. This
commit introduces the `index-setting` value for this parameter on this
API allowing users to opt-in to the future behaviour today, and starts
to emit a deprecation warning for users that use the default.

Relates elastic#67158
Retry of elastic#67246 now that elastic#67498 is merged to `master`
Closes elastic#66419
DaveCTurner added a commit that referenced this pull request Jan 14, 2021
In 7.x the close indices API defaults to `?wait_for_active_shards=0` but
from 8.0 it will default to respecting the index settings instead. This
commit introduces the `index-setting` value for this parameter on this
API allowing users to opt-in to the future behaviour today, and starts
to emit a deprecation warning for users that use the default.

Relates #67158
Retry of #67246 now that #67498 is merged to `master`
Closes #66419
pgomulka added a commit that referenced this pull request Jul 15, 2021
Warning related transformations missed the possibility to apply per single test only.
Also a warning changed in #67158 for indices.close so this PR also applies the transformation for 7.x test

relates #51816
masseyke pushed a commit to masseyke/elasticsearch that referenced this pull request Jul 16, 2021
…c#75187)

Warning related transformations missed the possibility to apply per single test only.
Also a warning changed in elastic#67158 for indices.close so this PR also applies the transformation for 7.x test

relates elastic#51816
@jakelandis jakelandis removed the v8.0.0 label Jul 26, 2021
ywangd pushed a commit to ywangd/elasticsearch that referenced this pull request Jul 30, 2021
…c#75187)

Warning related transformations missed the possibility to apply per single test only.
Also a warning changed in elastic#67158 for indices.close so this PR also applies the transformation for 7.x test

relates elastic#51816
arteam added a commit to arteam/elasticsearch that referenced this pull request Oct 14, 2024
…e API

Specifiying `wait_for_active_shards=index-setting` was deprecared in elastic#67158 (8.0).
It's redundant since it's the default behaviour in 8.x
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