accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject [1/3] git commit: ACCUMULO-2250 Move error logging in Fate.transitionToFailed to beginning of method
Date Fri, 24 Jan 2014 15:40:29 GMT
Updated Branches:
  refs/heads/master 349af6b94 -> 381555806


ACCUMULO-2250 Move error logging in Fate.transitionToFailed to beginning of method

Signed-off-by: Eric Newton <eric.newton@gmail.com>


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

Branch: refs/heads/master
Commit: b85c8b5c1fcd05c79ac777fc9f2e4085dcbb1b71
Parents: 59680b3
Author: Vikram Srivastava <vikrams@cloudera.com>
Authored: Fri Jan 24 01:38:44 2014 -0800
Committer: Eric Newton <eric.newton@gmail.com>
Committed: Fri Jan 24 10:38:42 2014 -0500

----------------------------------------------------------------------
 fate/src/main/java/org/apache/accumulo/fate/Fate.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/b85c8b5c/fate/src/main/java/org/apache/accumulo/fate/Fate.java
----------------------------------------------------------------------
diff --git a/fate/src/main/java/org/apache/accumulo/fate/Fate.java b/fate/src/main/java/org/apache/accumulo/fate/Fate.java
index bd36edb..670154e 100644
--- a/fate/src/main/java/org/apache/accumulo/fate/Fate.java
+++ b/fate/src/main/java/org/apache/accumulo/fate/Fate.java
@@ -96,9 +96,11 @@ public class Fate<T> {
     }
     
     private void transitionToFailed(long tid, Repo<T> op, Exception e) {
+      String tidStr = String.format("%016x", tid);
+      log.warn("Failed to execute Repo, tid=" + tidStr, e);
       store.setProperty(tid, EXCEPTION_PROP, e);
       store.setStatus(tid, TStatus.FAILED_IN_PROGRESS);
-      log.warn("Failed to execute Repo, tid=" + String.format("%016x", tid), e);
+      log.info("Updated status for Repo with tid=" + tidStr + " to FAILED_IN_PROGRESS");
     }
     
     private void processFailed(long tid, Repo<T> op) {


Mime
View raw message