Tests: disable rebalancing in restoreIndexWithShardsMissingInLocalGateway
Rebalancing sometimes kicks in at the end of restore and interferes with reuse stats that this test relies on.
This commit is contained in:
parent
d3e36d0940
commit
581bfc74c6
|
@ -41,6 +41,7 @@ import org.elasticsearch.cluster.ProcessedClusterStateUpdateTask;
|
||||||
import org.elasticsearch.cluster.AbstractDiffable;
|
import org.elasticsearch.cluster.AbstractDiffable;
|
||||||
import org.elasticsearch.cluster.metadata.MetaData;
|
import org.elasticsearch.cluster.metadata.MetaData;
|
||||||
import org.elasticsearch.cluster.metadata.MetaData.Custom;
|
import org.elasticsearch.cluster.metadata.MetaData.Custom;
|
||||||
|
import org.elasticsearch.cluster.routing.allocation.decider.EnableAllocationDecider;
|
||||||
import org.elasticsearch.common.Nullable;
|
import org.elasticsearch.common.Nullable;
|
||||||
import org.elasticsearch.common.Priority;
|
import org.elasticsearch.common.Priority;
|
||||||
import org.elasticsearch.common.io.stream.StreamInput;
|
import org.elasticsearch.common.io.stream.StreamInput;
|
||||||
|
@ -538,8 +539,12 @@ public class DedicatedClusterSnapshotRestoreTests extends AbstractSnapshotTests
|
||||||
@Test
|
@Test
|
||||||
public void restoreIndexWithShardsMissingInLocalGateway() throws Exception {
|
public void restoreIndexWithShardsMissingInLocalGateway() throws Exception {
|
||||||
logger.info("--> start 2 nodes");
|
logger.info("--> start 2 nodes");
|
||||||
internalCluster().startNode();
|
Settings nodeSettings = settingsBuilder()
|
||||||
internalCluster().startNode();
|
.put(EnableAllocationDecider.CLUSTER_ROUTING_REBALANCE_ENABLE, EnableAllocationDecider.Rebalance.NONE)
|
||||||
|
.build();
|
||||||
|
|
||||||
|
internalCluster().startNode(nodeSettings);
|
||||||
|
internalCluster().startNode(nodeSettings);
|
||||||
cluster().wipeIndices("_all");
|
cluster().wipeIndices("_all");
|
||||||
|
|
||||||
logger.info("--> create repository");
|
logger.info("--> create repository");
|
||||||
|
|
Loading…
Reference in New Issue