Skip to content

Commit

Permalink
Fix spotless checks
Browse files Browse the repository at this point in the history
Signed-off-by: Arpit Bandejiya <[email protected]>
  • Loading branch information
Arpit-Bandejiya committed Mar 25, 2024
1 parent c7ed191 commit aa7ffba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ public AllocationConstraints() {
this.constraints = new HashMap<>();
this.constraints.putIfAbsent(INDEX_SHARD_PER_NODE_BREACH_CONSTRAINT_ID, new Constraint(isIndexShardsPerNodeBreached()));
this.constraints.putIfAbsent(INDEX_PRIMARY_SHARD_BALANCE_CONSTRAINT_ID, new Constraint(isPerIndexPrimaryShardsPerNodeBreached()));
this.constraints.putIfAbsent(
CLUSTER_PRIMARY_SHARD_BALANCE_CONSTRAINT_ID,
new Constraint(isPrimaryShardsPerNodeBreached(0.0f))
);
this.constraints.putIfAbsent(CLUSTER_PRIMARY_SHARD_BALANCE_CONSTRAINT_ID, new Constraint(isPrimaryShardsPerNodeBreached(0.0f)));
}

public void updateAllocationConstraint(String constraint, boolean enable) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,13 @@ private ClusterState addIndex(
return applyAllocationUntilNoChange(clusterState, strategy);
}

private ClusterState addIndices(ClusterState clusterState, AllocationService strategy, int numberOfShards, int numberOfReplicas, int numberOfIndices) {
private ClusterState addIndices(
ClusterState clusterState,
AllocationService strategy,
int numberOfShards,
int numberOfReplicas,
int numberOfIndices
) {
Metadata.Builder metadataBuilder = Metadata.builder(clusterState.getMetadata());
RoutingTable.Builder routingTableBuilder = RoutingTable.builder(clusterState.routingTable());

Expand Down

0 comments on commit aa7ffba

Please sign in to comment.