Skip to content

Commit fef75ac

Browse files
Fix broken test caused by setting old write index to read-only verified (#123190) (#123209)
#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 e341735 commit fef75ac

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
@@ -566,9 +566,6 @@ private void upgradeDataStream(String dataStreamName, int numRolloversOnOldClust
566566
if (randomBoolean()) {
567567
closeIndex(oldIndexName);
568568
}
569-
if (randomBoolean()) {
570-
assertOK(client().performRequest(new Request("PUT", oldIndexName + "/_block/read_only")));
571-
}
572569
}
573570
Request reindexRequest = new Request("POST", "/_migration/reindex");
574571
reindexRequest.setJsonEntity(Strings.format("""

0 commit comments

Comments
 (0)