Skip to content

Commit 9628f84

Browse files
Fix broken test caused by setting old write index to read-only verified (#123190) (#123208)
#122887 set read-only on the source indices of a data stream reindex. To test behavior when the source index was already read-only, testDataStreamUpgrade sometimes set the old write index to read-only. But the rest end point for adding a read-only block always sets verifed-read-only. This caused the old write index to not need to be upgraded, resulting in an incorrect value for total_indices_requiring_upgrade (cherry picked from commit 8b25a72) # Conflicts: # muted-tests.yml
1 parent 7e27776 commit 9628f84

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

x-pack/qa/rolling-upgrade/src/test/java/org/elasticsearch/upgrades/DataStreamsUpgradeIT.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,6 @@ private void upgradeDataStream(String dataStreamName, int numRolloversOnOldClust
548548
if (randomBoolean()) {
549549
closeIndex(oldIndexName);
550550
}
551-
if (randomBoolean()) {
552-
assertOK(client().performRequest(new Request("PUT", oldIndexName + "/_block/read_only")));
553-
}
554551
}
555552
Request reindexRequest = new Request("POST", "/_migration/reindex");
556553
reindexRequest.setJsonEntity(Strings.format("""

0 commit comments

Comments
 (0)