This is an automated email from the ASF dual-hosted git repository.

kturner pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/2.1 by this push:
     new 757468a36e fixes flaky test IdleRatioScanPrioritizerTest (#5815)
757468a36e is described below

commit 757468a36e86677bae445a86c05354c96e438920
Author: Keith Turner <ktur...@apache.org>
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));

Reply via email to