Skip to content

Commit a548a7f

Browse files
authored
Fix full cluster restart test recovery (#29545)
The test was using a parameter on GET /_cluster/health that older nodes do not understand. Yet, we do no even need to make this call here, we can use ensure green for the index.
1 parent a7c9857 commit a548a7f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades/FullClusterRestartIT.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,7 @@ public void testEmptyShard() throws IOException {
687687
* Tests recovery of an index with or without a translog and the
688688
* statistics we gather about that.
689689
*/
690-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/29544")
691-
public void testRecovery() throws IOException {
690+
public void testRecovery() throws Exception {
692691
int count;
693692
boolean shouldHaveTranslog;
694693
if (runningAgainstOldCluster) {
@@ -701,7 +700,7 @@ public void testRecovery() throws IOException {
701700
indexRandomDocuments(count, true, true, i -> jsonBuilder().startObject().field("field", "value").endObject());
702701

703702
// make sure all recoveries are done
704-
ensureNoInitializingShards();
703+
ensureGreen(index);
705704
// Explicitly flush so we're sure to have a bunch of documents in the Lucene index
706705
client().performRequest("POST", "/_flush");
707706
if (shouldHaveTranslog) {

0 commit comments

Comments
 (0)