Skip to content

Commit

Permalink
[CI] Auto commit changes from spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticsearchmachine committed Dec 26, 2024
1 parent a432109 commit bb18ea8
Showing 1 changed file with 27 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,42 +129,40 @@ private void mockShardStats(boolean includeCommonStats) {
ShardRoutingState shardRoutingState = ShardRoutingState.fromValue((byte) randomIntBetween(2, 3));
ShardRouting shardRouting = TestShardRouting.newShardRouting(index, i, localNode.getId(), randomBoolean(), shardRoutingState);
Path path = createTempDir().resolve("indices")
.resolve(shardRouting.shardId().getIndex().getUUID())
.resolve(String.valueOf(shardRouting.shardId().id()));
.resolve(shardRouting.shardId().getIndex().getUUID())
.resolve(String.valueOf(shardRouting.shardId().id()));
CommonStats commonStats = null;
if (includeCommonStats) {
commonStats = new CommonStats(
randomFrom(CommonStatsFlags.ALL, new CommonStatsFlags(CommonStatsFlags.Flag.Indexing))
);
commonStats = new CommonStats(randomFrom(CommonStatsFlags.ALL, new CommonStatsFlags(CommonStatsFlags.Flag.Indexing)));
commonStats.indexing.add(
new IndexingStats(
new IndexingStats.Stats(
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomBoolean(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong()
)
new IndexingStats(
new IndexingStats.Stats(
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomBoolean(),
randomNonNegativeLong(),
randomNonNegativeLong(),
randomNonNegativeLong()
)
)
);
}
ShardStats shardStats = new ShardStats(
shardRouting,
new ShardPath(false, path, path, shardRouting.shardId()),
commonStats,
null,
null,
null,
false,
0
shardRouting,
new ShardPath(false, path, path, shardRouting.shardId()),
commonStats,
null,
null,
null,
false,
0
);
shardStatsMap.put(shardRouting, shardStats);
shardRoutings.add(shardRouting);
Expand Down

0 comments on commit bb18ea8

Please sign in to comment.