Skip to content

Commit 4dc061e

Browse files
committed
Merge branch '01172025/AutoShardPOC_addShards' of github.com:ankikuma/elasticsearch into 01172025/AutoShardPOC_addShards
Pull spotless changes
2 parents 68d5ba1 + b235778 commit 4dc061e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/Metadata.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2169,7 +2169,6 @@ public Builder updateNumberOfReplicas(final int numberOfReplicas, final String[]
21692169
return this;
21702170
}
21712171

2172-
21732172
/*
21742173
* Builder to update numberOfShards of an Index.
21752174
* The new shard count must be a multiple of the original shardcount.

server/src/test/java/org/elasticsearch/cluster/routing/allocation/UpdateNumberofShardsTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ public void testUpdateNumberOfShards() {
6767
.updateNumberOfShards(2, index)
6868
.build();
6969

70-
71-
//Metadata newMetadata = Metadata.builder(clusterState.metadata()).updateNumberOfShards(2, index).build();
70+
// Metadata newMetadata = Metadata.builder(clusterState.metadata()).updateNumberOfShards(2, index).build();
7271
Metadata newMetadata = MetadataAutoshardIndexService.incrementNumberOfShards(clusterState, 2, index).build();
7372
clusterState = ClusterState.builder(clusterState).routingTable(updatedRoutingTable).metadata(newMetadata).build();
7473

0 commit comments

Comments
 (0)