Skip to content

Commit 626e3c1

Browse files
committed
Fix IndexStatsIT#testThrottleStats
`Engine.PauseLock#throttle` can be called when the lock is being throttled, so we can't guarantee that all permits are available before throttling. Resolve elastic#126359 See elastic#127173
1 parent 41613e6 commit 626e3c1

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -450,9 +450,6 @@ tests:
450450
- class: org.elasticsearch.cluster.routing.allocation.decider.DiskThresholdDeciderIT
451451
method: testRestoreSnapshotAllocationDoesNotExceedWatermarkWithMultipleRestores
452452
issue: https://github.com/elastic/elasticsearch/issues/127787
453-
- class: org.elasticsearch.indices.stats.IndexStatsIT
454-
method: testThrottleStats
455-
issue: https://github.com/elastic/elasticsearch/issues/126359
456453
- class: org.elasticsearch.search.vectors.IVFKnnFloatVectorQueryTests
457454
method: testRandomWithFilter
458455
issue: https://github.com/elastic/elasticsearch/issues/127963

server/src/main/java/org/elasticsearch/index/engine/Engine.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,6 @@ public Condition newCondition() {
612612
}
613613

614614
public void throttle() {
615-
assert semaphore.availablePermits() == Integer.MAX_VALUE;
616615
semaphore.acquireUninterruptibly(Integer.MAX_VALUE - allowThreads);
617616
}
618617

0 commit comments

Comments
 (0)