2626import org .elasticsearch .node .Node ;
2727import org .elasticsearch .test .ESIntegTestCase ;
2828import org .elasticsearch .test .NodeRoles ;
29- import org .elasticsearch .test .junit .annotations .TestLogging ;
3029import org .elasticsearch .transport .TransportService ;
3130import org .elasticsearch .xpack .autoscaling .action .GetAutoscalingCapacityAction ;
3231import 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