mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Fix flaky tests.
Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
parent
b78e95b5b5
commit
d7f2b09bae
@ -234,8 +234,10 @@ public class ShardIndexingPressureConcurrentExecutionTests extends OpenSearchTes
|
||||
assertTrue(nodeStats.getCurrentCombinedCoordinatingAndPrimaryBytes() < 50 * 200);
|
||||
assertTrue(shardStats.getIndexingPressureShardStats(shardId1).getCurrentCombinedCoordinatingAndPrimaryBytes() < 50 * 200);
|
||||
|
||||
for (int i = 0; i < NUM_THREADS - rejectionCount.get(); i++) {
|
||||
releasables[i].close();
|
||||
for (Releasable releasable : releasables) {
|
||||
if (releasable != null) {
|
||||
releasable.close();
|
||||
}
|
||||
}
|
||||
|
||||
nodeStats = shardIndexingPressure.stats();
|
||||
|
Loading…
x
Reference in New Issue
Block a user