-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Shrinking doesn't play well with index.mapping.single_type #31787
Labels
Comments
Pinging @elastic/es-core-infra |
@gmoskovicz just let me know that we actually already fixed it in 6.3 via #29202 cc @jimczi |
Yep this is fixed in 6.3 but I don't remember why I did not backport in 5.6 😕 . I'll open a new pr for 5.6, sorry for the confusion. |
jimczi
added a commit
to jimczi/elasticsearch
that referenced
this issue
Jul 5, 2018
The index.mapping.single_type setting is not propagated when shrinking an index created in 5.x. This breaks search/get on the shrinked index because this setting is used to choose whether _uid or _id field should be used as the primary key. This commit fixes this bug by copying the setting in the shrinked index. Closes elastic#31787
jimczi
added a commit
that referenced
this issue
Jul 5, 2018
The index.mapping.single_type setting is not propagated when shrinking an index created in 5.x. This breaks search/get on the shrinked index because this setting is used to choose whether _uid or _id field should be used as the primary key. This commit fixes this bug by copying the setting in the shrinked index. Closes #31787
Closed by #31811, thanks @jpountz and @gmoskovicz ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Here is a recreation for 5.6 (only 5.x is affected, not 6.x where this setting doesn't make sense):
This is due to the fact that the single type setting is not preserved by the shrink:
The text was updated successfully, but these errors were encountered: