|
@@ -101,6 +101,7 @@ import org.elasticsearch.cluster.SnapshotsInProgress;
|
|
|
import org.elasticsearch.cluster.action.index.MappingUpdatedAction;
|
|
|
import org.elasticsearch.cluster.action.index.NodeMappingRefreshAction;
|
|
|
import org.elasticsearch.cluster.action.shard.ShardStateAction;
|
|
|
+import org.elasticsearch.cluster.coordination.AbstractCoordinatorTestCase;
|
|
|
import org.elasticsearch.cluster.coordination.ClusterBootstrapService;
|
|
|
import org.elasticsearch.cluster.coordination.CoordinationMetadata.VotingConfiguration;
|
|
|
import org.elasticsearch.cluster.coordination.CoordinationState;
|
|
@@ -408,7 +409,6 @@ public class SnapshotResiliencyTests extends ESTestCase {
|
|
|
assertThat(snapshotIds, hasSize(1));
|
|
|
}
|
|
|
|
|
|
- @AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/55103")
|
|
|
public void testSnapshotDeleteWithMasterFailover() {
|
|
|
final int dataNodes = randomIntBetween(2, 10);
|
|
|
final int masterNodes = randomFrom(3, 5);
|
|
@@ -966,6 +966,11 @@ public class SnapshotResiliencyTests extends ESTestCase {
|
|
|
}
|
|
|
|
|
|
private void stabilize() {
|
|
|
+ final long endTime = deterministicTaskQueue.getCurrentTimeMillis() + AbstractCoordinatorTestCase.DEFAULT_STABILISATION_TIME;
|
|
|
+ while (deterministicTaskQueue.getCurrentTimeMillis() < endTime) {
|
|
|
+ deterministicTaskQueue.advanceTime();
|
|
|
+ deterministicTaskQueue.runAllRunnableTasks();
|
|
|
+ }
|
|
|
runUntil(
|
|
|
() -> {
|
|
|
final Collection<ClusterState> clusterStates =
|