-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Avoid serializing empty _source fields in mappings. #122606
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
Conversation
Hi @martijnvg, I've created a changelog YAML for you. |
(b, n, v) -> b.field(n, v.toString().toLowerCase(Locale.ROOT)), | ||
v -> v.toString().toLowerCase(Locale.ROOT) | ||
).setMergeValidator((previous, current, conflicts) -> (previous == current) || current != Mode.STORED) | ||
this.mode = new Parameter<>("mode", true, () -> null, (n, c, o) -> Mode.valueOf(o.toString().toUpperCase(Locale.ROOT)), m -> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the actual fix. The initializer set the mode only based on whether enabled
parameter was specified and didn't check the serializeMode
field.
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
.feature(FeatureFlag.TIME_SERIES_MODE) | ||
.feature(FeatureFlag.FAILURE_STORE_ENABLED); | ||
|
||
if (oldVersion.before(Version.fromString("9.1.0"))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I plan to backport this all the way to 8.18 branch, which means when back ported this version will be updated. And I think after 8.19 has been removed this can be removed from main.
💔 Backport failed
You can use sqren/backport to manually backport by running |
Backporting elastic#122606 to 8.18 branch.
Backporting elastic#122606 to 8.x branch.
Backporting elastic#122606 to 9.0 branch.
Backporting #122606 to 9.0 branch.
* [8.x] Avoid serializing empty _source fields in mappings. Backporting #122606 to 8.x branch. * Fix initialize builder for merging * iter
Backporting #122606 to 8.18 branch.
Remove `-da:org.elasticsearch.index.mapper.DocumentMapper` and `-da:org.elasticsearch.index.mapper.MapperService` from cluster setup. Given that elastic#122606 is now backported to the 8.18 branch.
Update `-da:org.elasticsearch.index.mapper.DocumentMapper` and `-da:org.elasticsearch.index.mapper.MapperService` from cluster setup. Given that elastic#122606 is now backported to the 8.18 branch.
Backporting elastic#125074 to 9.0 branch. Remove `-da:org.elasticsearch.index.mapper.DocumentMapper` and `-da:org.elasticsearch.index.mapper.MapperService` from mixed cluster/bwc cluster setups. Given that elastic#122606 is now backported to the 8.18 branch.
Backporting elastic#125074 to 8.x branch. Remove `-da:org.elasticsearch.index.mapper.DocumentMapper` and `-da:org.elasticsearch.index.mapper.MapperService` from mixed cluster/bwc cluster setups. Given that elastic#122606 is now backported to the 8.18 branch.
…stic#125074) Remove `-da:org.elasticsearch.index.mapper.DocumentMapper` and `-da:org.elasticsearch.index.mapper.MapperService` from mixed cluster/bwc cluster setups. Given that elastic#122606 is now backported to the 8.18 branch.
…stic#125074) Remove `-da:org.elasticsearch.index.mapper.DocumentMapper` and `-da:org.elasticsearch.index.mapper.MapperService` from mixed cluster/bwc cluster setups. Given that elastic#122606 is now backported to the 8.18 branch.
No description provided.