Skip to content

Reindexing older indices with percolator fields clears migration assistant errors#141539

Merged
mark-vieira merged 2 commits intoelastic:8.19from
mark-vieira:index-transport-version-fix
Jan 29, 2026
Merged

Reindexing older indices with percolator fields clears migration assistant errors#141539
mark-vieira merged 2 commits intoelastic:8.19from
mark-vieira:index-transport-version-fix

Conversation

@mark-vieira
Copy link
Contributor

This is a follow up to #138118 which added a TransportVersion field to IndexMetadata to capture the cluster transport version at the time of index creation. This is required because for some features, like percolator fields, the transport version is used for serialization, and therefore, impacts the ability to read these older indices.

This fixes a bug where the transport version wasn't correctly being set on the index metadata prior to index creation. This had downstream effects, like certain deprecation checks thinking these were old indices, when in fact, they were not. Specifically, this caused the migration assistant warning in the linked PR to continue to persist even when the incompatible index was re-indexed.

@mark-vieira mark-vieira requested a review from jdconrad January 29, 2026 18:40
@mark-vieira mark-vieira added >bug :Core/Infra/Core Core issues without another label auto-backport Automatically create backport pull requests when merged branch:9.2 branch:9.3 labels Jan 29, 2026
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine
Copy link
Collaborator

Hi @mark-vieira, I've created a changelog YAML for you.

@mark-vieira mark-vieira enabled auto-merge (squash) January 29, 2026 18:48
@mark-vieira mark-vieira merged commit 6a7320b into elastic:8.19 Jan 29, 2026
29 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.3 Commit could not be cherrypicked due to conflicts
9.2 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 141539

mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request Jan 29, 2026
…stant errors (elastic#141539)

(cherry picked from commit 6a7320b)

# Conflicts:
#	server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java
#	server/src/test/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexServiceTests.java
mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request Jan 29, 2026
…stant errors (elastic#141539)

(cherry picked from commit 6a7320b)

# Conflicts:
#	server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java
#	server/src/test/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexServiceTests.java
@mark-vieira
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
main
9.3
9.2

Questions ?

Please refer to the Backport tool documentation

mark-vieira added a commit to mark-vieira/elasticsearch that referenced this pull request Jan 29, 2026
…stant errors (elastic#141539)

(cherry picked from commit 6a7320b)

# Conflicts:
#	server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java
#	server/src/test/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexServiceTests.java
elasticsearchmachine pushed a commit that referenced this pull request Jan 29, 2026
…on assistant errors (#141539) (#141552)

* Reindexing older indices with percolator fields clears migration assistant errors (#141539)

(cherry picked from commit 6a7320b)

# Conflicts:
#	server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java
#	server/src/test/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexServiceTests.java

* [CI] Auto commit changes from spotless

* Fix compilation error

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
elasticsearchmachine pushed a commit that referenced this pull request Jan 29, 2026
…n assistant errors (#141539) (#141554)

* Reindexing older indices with percolator fields clears migration assistant errors (#141539)

(cherry picked from commit 6a7320b)

# Conflicts:
#	server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java
#	server/src/test/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexServiceTests.java

* [CI] Auto commit changes from spotless

* Fix compilation error

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
elasticsearchmachine pushed a commit that referenced this pull request Jan 29, 2026
…n assistant errors (#141539) (#141553)

* Reindexing older indices with percolator fields clears migration assistant errors (#141539)

(cherry picked from commit 6a7320b)

# Conflicts:
#	server/src/main/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexService.java
#	server/src/test/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexServiceTests.java

* [CI] Auto commit changes from spotless

* Fix compilation error

---------

Co-authored-by: elasticsearchmachine <infra-root+elasticsearchmachine@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged >bug :Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team v8.19.12 v9.2.6 v9.3.1 v9.4.0

3 participants