Skip to content

Permit wait_for_active_shards warnings in master#67498

Merged
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2021-01-13-permit-wait_for_active_shards-warnings-in-master
Jan 14, 2021
Merged

Permit wait_for_active_shards warnings in master#67498
DaveCTurner merged 1 commit intoelastic:masterfrom
DaveCTurner:2021-01-13-permit-wait_for_active_shards-warnings-in-master

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Part of the fixes for #66419, this commit permits nodes to emit the
deprecation warning regarding not specifying ?wait_for_active_shards
when closing an index in 7.x versions for x ≥ 12. This change is
required on master too since the BWC tests encounter these warnings.

Relates #67246, which is the 7.x part of this change.

Part of the fixes for elastic#66419, this commit permits nodes to emit the
deprecation warning regarding not specifying `?wait_for_active_shards`
when closing an index in 7.x versions for x ≥ 12. This change is
required on `master` too since the BWC tests encounter these warnings.

Relates elastic#67246, which is the 7.x part of this change.
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. v8.0.0 labels Jan 14, 2021
@DaveCTurner DaveCTurner requested a review from tlrx January 14, 2021 07:33
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Jan 14, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

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

@DaveCTurner
Copy link
Copy Markdown
Member Author

@elasticmachine please run elasticsearch-ci/2 (failure is #66278)

@DaveCTurner
Copy link
Copy Markdown
Member Author

Note to reviewers: this change is tricky to validate, it doesn't really do anything until #67246 is merged. I ran a few iterations of ./gradlew -Dbwc.refspec.7.x=29c5abc874918aede3bef24df2f571339ee6bf5d bwcTests on this branch overnight, where 29c5abc is the commit before #67246 was reverted.

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 🤞

@DaveCTurner DaveCTurner merged commit bc1f50c into elastic:master Jan 14, 2021
@DaveCTurner DaveCTurner deleted the 2021-01-13-permit-wait_for_active_shards-warnings-in-master branch January 14, 2021 15:55
@DaveCTurner
Copy link
Copy Markdown
Member Author

Thanks @tlrx, 🤞 indeed.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Distributed A catch all label for anything in the Distributed Area. Please avoid if you can. Team:Distributed Meta label for distributed team. >test Issues or PRs that are addressing/adding tests v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants