accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ktur...@apache.org
Subject git commit: ACCUMULO-1345 added filename to log message about stuck compactions
Date Mon, 16 Sep 2013 22:13:05 GMT
Updated Branches:
  refs/heads/master f95fca397 -> 2ab30557c


ACCUMULO-1345 added filename to log message about stuck compactions


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/2ab30557
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/2ab30557
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/2ab30557

Branch: refs/heads/master
Commit: 2ab30557c434c52c75203603e713f9cd7aa4d454
Parents: f95fca3
Author: Keith Turner <kturner@apache.org>
Authored: Mon Sep 16 18:12:59 2013 -0400
Committer: Keith Turner <kturner@apache.org>
Committed: Mon Sep 16 18:12:59 2013 -0400

----------------------------------------------------------------------
 .../apache/accumulo/server/tabletserver/CompactionWatcher.java   | 3 ++-
 .../java/org/apache/accumulo/server/tabletserver/Compactor.java  | 4 ++++
 2 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/2ab30557/server/src/main/java/org/apache/accumulo/server/tabletserver/CompactionWatcher.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/accumulo/server/tabletserver/CompactionWatcher.java
b/server/src/main/java/org/apache/accumulo/server/tabletserver/CompactionWatcher.java
index 44b26ca..2ef2c24 100644
--- a/server/src/main/java/org/apache/accumulo/server/tabletserver/CompactionWatcher.java
+++ b/server/src/main/java/org/apache/accumulo/server/tabletserver/CompactionWatcher.java
@@ -92,7 +92,8 @@ public class CompactionWatcher implements Runnable {
           Exception e = new Exception("Possible stack trace of compaction stuck on " + oci.compactionInfo.getExtent());
           e.setStackTrace(trace);
           Logger.getLogger(CompactionWatcher.class).warn(
-              "Compaction of " + oci.compactionInfo.getExtent() + " has not made progress
for at least " + (time - oci.firstSeen) + "ms", e);
+              "Compaction of " + oci.compactionInfo.getExtent() + " to " + oci.compactionInfo.getOutputFile()
+ " has not made progress for at least "
+                  + (time - oci.firstSeen) + "ms", e);
           oci.loggedWarning = true;
         }
       }

http://git-wip-us.apache.org/repos/asf/accumulo/blob/2ab30557/server/src/main/java/org/apache/accumulo/server/tabletserver/Compactor.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/accumulo/server/tabletserver/Compactor.java b/server/src/main/java/org/apache/accumulo/server/tabletserver/Compactor.java
index 8001cad..875a332 100644
--- a/server/src/main/java/org/apache/accumulo/server/tabletserver/Compactor.java
+++ b/server/src/main/java/org/apache/accumulo/server/tabletserver/Compactor.java
@@ -208,6 +208,10 @@ public class Compactor implements Callable<CompactionStats> {
       return compactor.thread;
     }
 
+    public String getOutputFile() {
+      return compactor.getOutputFile();
+    }
+
     public ActiveCompaction toThrift() {
       
       CompactionType type;


Mime
View raw message