Skip to content

es.xcontent.strict_duplicate_detection warning required  #60222

@damianpfister

Description

@damianpfister

Elasticsearch version (bin/elasticsearch --version): 7.7.0

Plugins installed: [N/A]

JVM version (java -version): OpenJDK 64-Bit Server VM 14u36

OS version (uname -a if on a Unix-like system): RHEL 7

Description of the problem including expected versus actual behavior:
When a cluster has indices with duplicate fields prior to 6.x and es.xcontent.strict_duplicate_detection is set to false in order to by-pass the strict duplicate checks, there is no warning this is depricated. Then when upgraded to 7.x (with the same setting) this setting doesn't work - we removed that setting in 7.0 (#34588) and it was listed under the "Enhancements" of 7.0.0-alpha1 (https://www.elastic.co/guide/en/elasticsearch/reference/current/release-notes-7.0.0-alpha1.html#enhancement-7.0.0-alpha1).

Version 7.x should not allow the cluster to start with this setting configured and perhaps the upgrade assistant should detect the duplicates (am assuming it didn't in this case).

Steps to reproduce:
Index in 5.x with duplicate fields, upgrade to 6.x and disable es.xcontent.strict_duplicate_detection (works) then upgrade to 7.x and indexing no longer works

Provide logs (if relevant): N/A

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions