Skip to content

Commit 98a5019

Browse files
committed
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 303efde commit 98a5019

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
@@ -699,8 +699,7 @@ public void testEmptyShard() throws IOException {
699699
* Tests recovery of an index with or without a translog and the
700700
* statistics we gather about that.
701701
*/
702-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/29544")
703-
public void testRecovery() throws IOException {
702+
public void testRecovery() throws Exception {
704703
int count;
705704
boolean shouldHaveTranslog;
706705
if (runningAgainstOldCluster) {
@@ -713,7 +712,7 @@ public void testRecovery() throws IOException {
713712
indexRandomDocuments(count, true, true, i -> jsonBuilder().startObject().field("field", "value").endObject());
714713

715714
// make sure all recoveries are done
716-
ensureNoInitializingShards();
715+
ensureGreen(index);
717716
// Explicitly flush so we're sure to have a bunch of documents in the Lucene index
718717
client().performRequest("POST", "/_flush");
719718
if (shouldHaveTranslog) {

0 commit comments

Comments
 (0)