Skip to content

Commit dca823a

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 72635ca commit dca823a

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

server/src/test/java/org/elasticsearch/cluster/routing/allocation/allocator/ClusterBalanceStatsTests.java

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,12 @@ public void testStatsForNoIndicesInTier() {
253253
var clusterInfo = createClusterInfo(List.of());
254254

255255
double nodeWeight = randomDoubleBetween(-1, 1, true);
256-
var stats = ClusterBalanceStats.createFrom(clusterState, createDesiredBalance(clusterState, nodeWeight), clusterInfo, TEST_WRITE_LOAD_FORECASTER);
256+
var stats = ClusterBalanceStats.createFrom(
257+
clusterState,
258+
createDesiredBalance(clusterState, nodeWeight),
259+
clusterInfo,
260+
TEST_WRITE_LOAD_FORECASTER
261+
);
257262

258263
assertThat(
259264
stats,
@@ -294,7 +299,12 @@ public void testStatsForDesiredBalanceWithEmptyWeightsPerNodeMap() {
294299
var clusterState = createClusterState(List.of(NODE1, NODE2, NODE3), List.of());
295300
var clusterInfo = createClusterInfo(List.of());
296301

297-
var stats = ClusterBalanceStats.createFrom(clusterState, createDesiredBalanceWithEmptyNodeWeights(clusterState), clusterInfo, TEST_WRITE_LOAD_FORECASTER);
302+
var stats = ClusterBalanceStats.createFrom(
303+
clusterState,
304+
createDesiredBalanceWithEmptyNodeWeights(clusterState),
305+
clusterInfo,
306+
TEST_WRITE_LOAD_FORECASTER
307+
);
298308

299309
assertThat(
300310
stats,

server/src/test/java/org/elasticsearch/cluster/routing/allocation/allocator/NodeBalanceStatsTests.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public void testSerializationWithTransportVersionV_8_7_0() throws IOException {
6060
ClusterBalanceStats.NodeBalanceStats instance = createTestInstance();
6161
// Serialization changes based on this version
6262
final var oldVersion = TransportVersionUtils.randomVersionBetween(
63-
random(),
64-
TransportVersions.V_8_0_0,
65-
TransportVersionUtils.getPreviousVersion(TransportVersions.V_8_8_0)
63+
random(),
64+
TransportVersions.V_8_0_0,
65+
TransportVersionUtils.getPreviousVersion(TransportVersions.V_8_8_0)
6666
);
6767
ClusterBalanceStats.NodeBalanceStats deserialized = copyInstance(instance, oldVersion);
6868

@@ -77,9 +77,9 @@ public void testSerializationWithTransportVersionV_8_8_0() throws IOException {
7777
ClusterBalanceStats.NodeBalanceStats instance = createTestInstance();
7878
// Serialization changes based on this version
7979
final var oldVersion = TransportVersionUtils.randomVersionBetween(
80-
random(),
81-
TransportVersions.V_8_8_0,
82-
TransportVersionUtils.getPreviousVersion(TransportVersions.V_8_12_0)
80+
random(),
81+
TransportVersions.V_8_8_0,
82+
TransportVersionUtils.getPreviousVersion(TransportVersions.V_8_12_0)
8383
);
8484
ClusterBalanceStats.NodeBalanceStats deserialized = copyInstance(instance, oldVersion);
8585

@@ -96,9 +96,9 @@ public void testSerializationWithTransportVersionV_8_12_0() throws IOException {
9696
ClusterBalanceStats.NodeBalanceStats instance = createTestInstance();
9797
// Serialization changes based on this version
9898
final var oldVersion = TransportVersionUtils.randomVersionBetween(
99-
random(),
100-
TransportVersions.V_8_12_0,
101-
TransportVersionUtils.getPreviousVersion(TransportVersions.NODE_WEIGHTS_ADDED_TO_NODE_BALANCE_STATS)
99+
random(),
100+
TransportVersions.V_8_12_0,
101+
TransportVersionUtils.getPreviousVersion(TransportVersions.NODE_WEIGHTS_ADDED_TO_NODE_BALANCE_STATS)
102102
);
103103
ClusterBalanceStats.NodeBalanceStats deserialized = copyInstance(instance, oldVersion);
104104

@@ -115,9 +115,9 @@ public void testSerializationWithTransportVersionNodeWeightsAddedToNodeBalanceSt
115115
ClusterBalanceStats.NodeBalanceStats instance = createTestInstance();
116116
// Serialization changes based on this version
117117
final var oldVersion = TransportVersionUtils.randomVersionBetween(
118-
random(),
119-
TransportVersions.NODE_WEIGHTS_ADDED_TO_NODE_BALANCE_STATS,
120-
TransportVersion.current()
118+
random(),
119+
TransportVersions.NODE_WEIGHTS_ADDED_TO_NODE_BALANCE_STATS,
120+
TransportVersion.current()
121121
);
122122
ClusterBalanceStats.NodeBalanceStats deserialized = copyInstance(instance, oldVersion);
123123

0 commit comments

Comments
 (0)