Skip to content

Commit

Permalink
fix integ test: check for red indices and then manually restore to gr…
Browse files Browse the repository at this point in the history
…een (#10838)

Signed-off-by: bansvaru <bansvaru@amazon.com>
  • Loading branch information
linuxpi committed Oct 23, 2023
1 parent 9b7a9d0 commit 5e7c068
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void testFullClusterRestore() throws Exception {
* 8. Add data nodes to recover index data
* 9. Verify Metadata and index data is restored.
*/
public void testFullClusterStateRestore() throws Exception {
public void testFullClusterRestoreDoesntFailWithConflictingLocalState() throws Exception {
int shardCount = randomIntBetween(1, 2);
int replicaCount = 1;
int dataNodeCount = shardCount * (replicaCount + 1);
Expand Down Expand Up @@ -159,7 +159,7 @@ public Settings onNodeStopped(String nodeName) {

// start data nodes to trigger index data recovery
internalCluster().startDataOnlyNodes(dataNodeCount);
verifyRestoredData(indexStats, INDEX_NAME);
verifyRedIndicesAndTriggerRestore(indexStats, INDEX_NAME, true);
}

public void testFullClusterRestoreMultipleIndices() throws Exception {
Expand Down

0 comments on commit 5e7c068

Please sign in to comment.