From ae55b27656cdaef3db3bec12344a827f05240512 Mon Sep 17 00:00:00 2001 From: Rishikesh1159 Date: Sat, 3 Dec 2022 00:22:39 +0000 Subject: [PATCH] apply spotless. Signed-off-by: Rishikesh1159 --- .../ShardIndexingPressureConcurrentExecutionTests.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/server/src/test/java/org/opensearch/index/ShardIndexingPressureConcurrentExecutionTests.java b/server/src/test/java/org/opensearch/index/ShardIndexingPressureConcurrentExecutionTests.java index 8e49c17f32e36..44b7e96cf42f1 100644 --- a/server/src/test/java/org/opensearch/index/ShardIndexingPressureConcurrentExecutionTests.java +++ b/server/src/test/java/org/opensearch/index/ShardIndexingPressureConcurrentExecutionTests.java @@ -269,10 +269,9 @@ public void testCoordinatingPrimaryThreadedUpdateToShardLimitsAndRejections() th nodeStats = shardIndexingPressure.stats(); IndexingPressurePerShardStats shardStoreStats = shardIndexingPressure.shardStats().getIndexingPressureShardStats(shardId1); - if(rejectionCount.get() == NUM_THREADS){ + if (rejectionCount.get() == NUM_THREADS) { assertEquals(10, shardStoreStats.getCurrentPrimaryAndCoordinatingLimits()); - } - else{ + } else { assertNull(shardStoreStats); } shardStats = shardIndexingPressure.coldStats(); @@ -336,10 +335,9 @@ public void testReplicaThreadedUpdateToShardLimitsAndRejections() throws Excepti assertEquals(0, nodeStats.getCurrentReplicaBytes()); IndexingPressurePerShardStats shardStoreStats = shardIndexingPressure.shardStats().getIndexingPressureShardStats(shardId1); - if(rejectionCount.get() == NUM_THREADS){ + if (rejectionCount.get() == NUM_THREADS) { assertEquals(15, shardStoreStats.getCurrentReplicaLimits()); - } - else{ + } else { assertNull(shardStoreStats); }