Skip to content

Comments

Add deprecation warning for removed strict_duplicate_detection setting#63500

Merged
williamrandolph merged 9 commits intoelastic:7.xfrom
williamrandolph:duplicate-detection-deprecation
Dec 18, 2020
Merged

Add deprecation warning for removed strict_duplicate_detection setting#63500
williamrandolph merged 9 commits intoelastic:7.xfrom
williamrandolph:duplicate-detection-deprecation

Conversation

@williamrandolph
Copy link
Contributor

The setting es.xcontent.strict_duplicate_detection was removed in 7.0 (see #34588). It was an undocumented setting, but enough users relied on it that its absence is causing problems during upgrades. This commit adds a message to the deprecation log if this setting is present at startup.

I looked at putting the warning in the Java options parser, but it was hard to be sure that a check there was catching all the possible ways that a java setting could be passed to the runtime ES JVM. By putting the check in the bootstrap class, we can check the setting in the same way that it was originally used.

The original ticket requested that Elasticsearch fail to start if the es.xcontent.strict_duplicate_detection setting is present. This PR does not do that. It seems to me that at least one release should have a deprecation warning before moving to failure to start.

Relates #60222.

The setting es.xcontent.strict_duplicate_detection was removed in 7.0
(see elastic#34588). It was an undocumented setting, but enough users relied
on it that its absence is causing problems during upgrades. This commit
adds a message to the deprecation log if this setting is present at
startup.
@williamrandolph williamrandolph added :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts :Core/Infra/Core Core issues without another label >deprecation v7.11.0 v7.10.1 labels Oct 8, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Packaging)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Core)

@elasticmachine elasticmachine added Team:Core/Infra Meta label for core/infra team labels Oct 8, 2020
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

A few comments

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@mark-vieira mark-vieira added Team:Delivery Meta label for Delivery team and removed Team:Core/Infra Meta label for core/infra team labels Nov 11, 2020
@fcofdez fcofdez added v7.10.2 and removed v7.10.1 labels Nov 24, 2020
@williamrandolph
Copy link
Contributor Author

@elasticmachine test this please

@williamrandolph
Copy link
Contributor Author

@elasticmachine update branch please

@williamrandolph
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/packaging-unix

@williamrandolph williamrandolph merged commit 445c850 into elastic:7.x Dec 18, 2020
@pugnascotia pugnascotia removed the :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts label Jan 18, 2021
@elasticmachine elasticmachine removed the Team:Delivery Meta label for Delivery team label Jan 18, 2021
@williamrandolph williamrandolph deleted the duplicate-detection-deprecation branch May 23, 2022 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label >deprecation v7.12.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants