Skip to content

Commit ed5bb29

Browse files
committed
ReactiveStorageIT no longer applies to clones
1 parent f5e1246 commit ed5bb29

File tree

1 file changed

+3
-11
lines changed
  • x-pack/plugin/autoscaling/src/internalClusterTest/java/org/elasticsearch/xpack/autoscaling/storage

1 file changed

+3
-11
lines changed

x-pack/plugin/autoscaling/src/internalClusterTest/java/org/elasticsearch/xpack/autoscaling/storage/ReactiveStorageIT.java

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import org.elasticsearch.node.Node;
2727
import org.elasticsearch.test.ESIntegTestCase;
2828
import org.elasticsearch.test.NodeRoles;
29-
import org.elasticsearch.test.junit.annotations.TestLogging;
3029
import org.elasticsearch.transport.TransportService;
3130
import org.elasticsearch.xpack.autoscaling.action.GetAutoscalingCapacityAction;
3231
import org.elasticsearch.xpack.autoscaling.action.PutAutoscalingPolicyAction;
@@ -400,13 +399,7 @@ public void testScaleWhileShrinking() throws Exception {
400399
);
401400
}
402401

403-
@TestLogging(
404-
reason = "Debugging https://github.com/elastic/elasticsearch/issues/96764",
405-
value = "org.elasticsearch.cluster.InternalClusterInfoService:TRACE"
406-
+ ",org.elasticsearch.xpack.autoscaling.action:TRACE"
407-
+ ",org.elasticsearch.cluster.routing.allocation:DEBUG"
408-
)
409-
public void testScaleDuringSplitOrClone() throws Exception {
402+
public void testScaleDuringSplit() throws Exception {
410403
internalCluster().startMasterOnlyNode();
411404
final String dataNode1Name = internalCluster().startDataOnlyNode();
412405

@@ -460,9 +453,8 @@ public void testScaleDuringSplitOrClone() throws Exception {
460453
);
461454

462455
updateIndexSettings(Settings.builder().put("index.blocks.write", true), indexName);
463-
ResizeType resizeType = randomFrom(ResizeType.CLONE, ResizeType.SPLIT);
464456
String cloneName = "clone-" + indexName;
465-
int resizedShardCount = resizeType == ResizeType.CLONE ? 1 : between(2, 10);
457+
int resizedShardCount = between(2, 10);
466458
assertAcked(
467459
indicesAdmin().prepareResizeIndex(indexName, cloneName)
468460
.setSettings(
@@ -472,7 +464,7 @@ public void testScaleDuringSplitOrClone() throws Exception {
472464
.build()
473465
)
474466
.setWaitForActiveShards(ActiveShardCount.NONE)
475-
.setResizeType(resizeType)
467+
.setResizeType(ResizeType.SPLIT)
476468
);
477469

478470
// * 2 since worst case is no hard links, see DiskThresholdDecider.getExpectedShardSize.

0 commit comments

Comments
 (0)