Skip to content

Fix watcher check that determines when to serialize indices options. #78165

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

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

martijnvg
Copy link
Member

Backporting #78070 to 7.x branch.

The check was an identity check between the default constant and
the set indices options. This check is incorrect because in many
cases when IndicesOptions is parsed or randomly generated in tests,
then this check incorrectly returns false when in fact an IndicesOptions
instance is equal to the default constant, but it is just a different
instance/object.

Closes #78035

Backporting elastic#78070 to 7.x branch.

The check was an identity check between the default constant and
the set indices options. This check is incorrect because in many
cases when `IndicesOptions` is parsed or randomly generated in tests,
then this check incorrectly returns false when in fact an `IndicesOptions`
instance is equal to the default constant, but it is just a different
instance/object.

Closes elastic#78035
@martijnvg martijnvg added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Sep 22, 2021
@martijnvg
Copy link
Member Author

@elasticsearchmachine run elasticsearch-ci/part-2

@elasticsearchmachine elasticsearchmachine merged commit 8e58c01 into elastic:7.x Sep 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport v7.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants