Revision 9287f29bba5e270bd51d557b8daccb7d118ba247 authored by Nhat Nguyen on 29 March 2024, 03:51:48 UTC, committed by GitHub on 29 March 2024, 03:51:48 UTC
Missing a check on the transport version results in unreadable cluster state
if it includes a serialized instance of DownsampleShardTaskParams.
serie indices.
Reading an optional array requires reading a boolean first which is required to
know if an array of values exists in serialized form. From 8.13 on we try to
read such a boolean which is not there because older versions don't write any
boolean nor any string array. Here we include the check on versions for backward
compatibility skipping reading any boolean or array whatsoever whenever not possible.

Customers using downsampling might have cluster states including such serielized
objects and would be unable to upgrade to version 8.13. They will be able to
upgrade to any version including this fix.

This fix has a side effect #106880

Co-authored-by: Salvatore Campagna <93581129+salvatore-campagna@users.noreply.github.com>
1 parent a5a80c4
History
File Mode Size
.buildkite
.ci
.github
.idea
benchmarks
build-conventions
build-tools
build-tools-internal
client
dev-tools
distribution
docs
gradle
libs
licenses
modules
plugins
qa
rest-api-spec
server
test
x-pack
.backportrc.json -rw-r--r-- 357 bytes
.dir-locals.el -rw-r--r-- 3.3 KB
.editorconfig -rw-r--r-- 9.0 KB
.git-blame-ignore-revs -rw-r--r-- 795 bytes
.gitattributes -rw-r--r-- 221 bytes
.gitignore -rw-r--r-- 1.3 KB
BUILDING.md -rw-r--r-- 13.0 KB
CHANGELOG.md -rw-r--r-- 170 bytes
CONTRIBUTING.md -rw-r--r-- 49.8 KB
LICENSE.txt -rw-r--r-- 546 bytes
NOTICE.txt -rw-r--r-- 150 bytes
README.asciidoc -rw-r--r-- 8.9 KB
REST_API_COMPATIBILITY.md -rw-r--r-- 17.3 KB
TESTING.asciidoc -rw-r--r-- 34.5 KB
TRACING.md -rw-r--r-- 7.7 KB
Vagrantfile -rw-r--r-- 14.9 KB
branches.json -rw-r--r-- 238 bytes
build.gradle -rw-r--r-- 17.3 KB
catalog-info.yaml -rw-r--r-- 9.5 KB
gradle.properties -rw-r--r-- 1.1 KB
gradlew -rwxr-xr-x 8.5 KB
gradlew.bat -rw-r--r-- 2.8 KB
settings.gradle -rw-r--r-- 5.4 KB

README.asciidoc

back to top