Skip to content

Commit

Permalink
Disable flaky BoundedElasticScheduler test (#3142)
Browse files Browse the repository at this point in the history
The test is failing more and more on CI, reflecting the fact that
BoundedElasticScheduler picking patterns are just _skewed_ towards
picking the least busy, but not a guarantee.
  • Loading branch information
simonbasle committed Aug 8, 2022
1 parent 50bb983 commit 857d904
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -49,6 +49,7 @@
import org.assertj.core.data.Offset;
import org.awaitility.Awaitility;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.provider.CsvSource;
Expand Down Expand Up @@ -321,6 +322,7 @@ public void whenCapReachedPicksLeastBusyExecutor() throws InterruptedException {
"1000, 1", "1000, 100", "1000, 1000",
"10000, 1", "10000, 100", "10000, 1000"
} )
@Disabled("flaky, the boundedElasticScheduler is not 100% consistent in picking patterns")
void whenCapReachedPicksLeastBusyExecutorWithContention(int maxThreads, int contention) throws InterruptedException {
BoundedElasticScheduler s = scheduler(maxThreads);
HashSet<BoundedElasticScheduler.BoundedState> boundedStates = new HashSet<>();
Expand Down

0 comments on commit 857d904

Please sign in to comment.