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

ddanielr 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 24c159396d Fixes Fate tid format in log messages (#6226)
24c159396d is described below

commit 24c159396dfd02abe234b4e63b97804cf74a0736
Author: Daniel Roberts <[email protected]>
AuthorDate: Thu Mar 19 19:10:39 2026 -0400

    Fixes Fate tid format in log messages (#6226)
    
    Fixes a couple of log messages that would print the long value of the
    tid instead of the formatted value.
---
 core/src/main/java/org/apache/accumulo/core/fate/Fate.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/core/src/main/java/org/apache/accumulo/core/fate/Fate.java 
b/core/src/main/java/org/apache/accumulo/core/fate/Fate.java
index 684fd69cc0..a138534a59 100644
--- a/core/src/main/java/org/apache/accumulo/core/fate/Fate.java
+++ b/core/src/main/java/org/apache/accumulo/core/fate/Fate.java
@@ -245,7 +245,7 @@ public class Fate<T> {
     }
 
     private void doCleanUp(long tid) {
-      log.debug("Cleaning up {}", tid);
+      log.debug("Cleaning up {}", FateTxId.formatTid(tid));
       Boolean autoClean = (Boolean) store.getTransactionInfo(tid, 
TxInfo.AUTO_CLEAN);
       if (autoClean != null && autoClean) {
         store.delete(tid);
@@ -262,7 +262,7 @@ public class Fate<T> {
       try {
         op.undo(tid, environment);
       } catch (Exception e) {
-        log.warn("Failed to undo Repo, " + FateTxId.formatTid(tid), e);
+        log.warn("Failed to undo Repo, {}", FateTxId.formatTid(tid), e);
       }
     }
   }
@@ -411,7 +411,7 @@ public class Fate<T> {
         UtilWaitThread.sleep(500);
       }
     }
-    log.info("Unable to reserve transaction {} to cancel it", tid);
+    log.info("Unable to reserve transaction {} to cancel it", 
FateTxId.formatTid(tid));
     return false;
   }
 

Reply via email to