You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Correctly retrieve data stream write index in DataStreamsUpgradeIT (#133433)
The `testUpgradeDataStream` test configures an ILM policy with force
merge on a data stream, which is then reindexed after a cluster upgrade.
The test used to determine the write index of the data stream by looking
at the backing index of the data stream in the cluster state metadata
and retrieving the index that was created last. While this may have
worked for this test suite thusfar, this is generally not the right way
to determine the write index of a data stream, as newer indices can be
put inside the data stream either manually or by ILM.
The latter is the case with the upcoming force merge improvements, where
we perform force merge on a cloned index, meaning the cloned index might
be newer than the write index, resulting in a test failure because the
real write index is not skipped in the `checkILMPhase` method and thus
fails on the ILM `phase` assertion.
We also improve the assertion message to include some more information
to aid test failure investigation.
0 commit comments