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

keith-turner 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 7b6a136de0 fixes spurious failures in GarbageCollectorIT (#6669)
7b6a136de0 is described below

commit 7b6a136de01d4a10ae10351f9231aabd802172e7
Author: Keith Turner <[email protected]>
AuthorDate: Mon Nov 23 15:55:49 2026 -0500

    fixes spurious failures in GarbageCollectorIT (#6669)
    
    Was sometimes seeing GarbageCollectorIT.gcLotsOfCandidates fail with the
    GC process dying from OOME. Gave more memory to the process in the test
    and checked if the process was alive.
---
 server/gc/src/main/java/org/apache/accumulo/gc/GCRun.java           | 6 ++++--
 .../org/apache/accumulo/test/functional/GarbageCollectorIT.java     | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/server/gc/src/main/java/org/apache/accumulo/gc/GCRun.java 
b/server/gc/src/main/java/org/apache/accumulo/gc/GCRun.java
index c98d2f8b2e..5bc2276721 100644
--- a/server/gc/src/main/java/org/apache/accumulo/gc/GCRun.java
+++ b/server/gc/src/main/java/org/apache/accumulo/gc/GCRun.java
@@ -149,8 +149,10 @@ public class GCRun implements GarbageCollectionEnvironment 
{
       candidateLength += candidate.getPath().length();
       candidatesBatch.add(candidate);
       if (candidateLength > candidateBatchSize) {
-        log.info("Candidate batch of size {} has exceeded the threshold. 
Attempting to delete "
-            + "what has been gathered so far.", candidateLength);
+        log.info(
+            "Candidate batch of size {} with {} entries has exceeded the 
threshold. Attempting to delete "
+                + "what has been gathered so far.",
+            candidateLength, candidatesBatch.size());
         return candidatesBatch;
       }
     }
diff --git 
a/test/src/main/java/org/apache/accumulo/test/functional/GarbageCollectorIT.java
 
b/test/src/main/java/org/apache/accumulo/test/functional/GarbageCollectorIT.java
index de7a1134b6..724c58c550 100644
--- 
a/test/src/main/java/org/apache/accumulo/test/functional/GarbageCollectorIT.java
+++ 
b/test/src/main/java/org/apache/accumulo/test/functional/GarbageCollectorIT.java
@@ -189,11 +189,12 @@ public class GarbageCollectorIT extends 
ConfigurableMacBase {
     log.info("Filling metadata table with bogus delete flags");
     try (AccumuloClient c = 
Accumulo.newClient().from(getClientProperties()).build()) {
       addEntries(c);
-      cluster.getConfig().setDefaultMemory(32, MemoryUnit.MEGABYTE);
+      cluster.getConfig().setDefaultMemory(64, MemoryUnit.MEGABYTE);
       ProcessInfo gc = cluster.exec(SimpleGarbageCollector.class);
       Thread.sleep(SECONDS.toMillis(20));
       String output = "";
       while (!output.contains("has exceeded the threshold")) {
+        assertTrue(gc.getProcess().isAlive());
         try {
           output = gc.readStdOut();
         } catch (UncheckedIOException ex) {

Reply via email to