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 5b87b349f0 increment gc deletion error count on exception (#6685)
5b87b349f0 is described below

commit 5b87b349f07c3daf4b3b08cb53824d041c0585c0
Author: Keith Turner <[email protected]>
AuthorDate: Mon Nov 30 09:49:07 2026 -0500

    increment gc deletion error count on exception (#6685)
    
    When running a test where the GC was failing to delete non empty
    directories, noticed there was no error count in the monitor. Updated GC
    code to increment error count when an exception is thrown while
    attempting to delete.
---
 server/gc/src/main/java/org/apache/accumulo/gc/GCRun.java | 1 +
 1 file changed, 1 insertion(+)

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 5bc2276721..8ae528ddfd 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
@@ -342,6 +342,7 @@ public class GCRun implements GarbageCollectionEnvironment {
           }
         } catch (Exception e) {
           log.error("{} Exception while deleting files ", fileActionPrefix, e);
+          errors.increment();
         }
 
       };

Reply via email to