This is an automated email from the ASF dual-hosted git repository.
kturner pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new 96c20bd4b0 fixes flaky test IdleRatioScanPrioritizerTest (#5815)
96c20bd4b0 is described below
commit 96c20bd4b06de49c7ebf9609210c21cb9698b3f7
Author: Keith Turner <[email protected]>
AuthorDate: Mon Aug 25 15:05:08 2025 -0400
fixes flaky test IdleRatioScanPrioritizerTest (#5815)
Increased the run time numerator in the test so that changes in the idle
denominator caused by differing test execution times does not fail the test.
fixes #5809
---
.../accumulo/core/spi/scan/IdleRatioScanPrioritizerTest.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git
a/core/src/test/java/org/apache/accumulo/core/spi/scan/IdleRatioScanPrioritizerTest.java
b/core/src/test/java/org/apache/accumulo/core/spi/scan/IdleRatioScanPrioritizerTest.java
index a7ccb73658..051d28e8db 100644
---
a/core/src/test/java/org/apache/accumulo/core/spi/scan/IdleRatioScanPrioritizerTest.java
+++
b/core/src/test/java/org/apache/accumulo/core/spi/scan/IdleRatioScanPrioritizerTest.java
@@ -41,9 +41,10 @@ public class IdleRatioScanPrioritizerTest {
// Two following have never run, so oldest should go first
scans.add(new TestScanInfo("a", Type.SINGLE, now - 3));
scans.add(new TestScanInfo("b", Type.SINGLE, now - 8));
- // Two following have different idle ratio and same last run times
- scans.add(new TestScanInfo("c", Type.SINGLE, now - 16, 2, 10));
- scans.add(new TestScanInfo("d", Type.SINGLE, now - 16, 5, 10));
+ // Two following have different idle ratio and same last run times. Give
these larger run times
+ // than e and f so they always come after e and f as the idle time varies.
+ scans.add(new TestScanInfo("c", Type.SINGLE, now - 16, 2, 20));
+ scans.add(new TestScanInfo("d", Type.SINGLE, now - 16, 5, 20));
// Two following have same idle ratio and different last run times
scans.add(new TestScanInfo("e", Type.SINGLE, now - 12, 5, 9));
scans.add(new TestScanInfo("f", Type.SINGLE, now - 12, 3, 7));