Updated Branches: refs/heads/master 6991509cc -> 349af6b94
ACCUMULO-2250 Move error logging in Fate.transitionToFailed to beginning of method Signed-off-by: Eric Newton <eric.new...@gmail.com> Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/930a6b84 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/930a6b84 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/930a6b84 Branch: refs/heads/master Commit: 930a6b84f84c87809bd6af0748358393b75b681f Parents: 11d803c Author: Vikram Srivastava <vikr...@cloudera.com> Authored: Fri Jan 24 01:38:44 2014 -0800 Committer: Eric Newton <eric.new...@gmail.com> Committed: Fri Jan 24 10:33:50 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/930a6b84/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 2d69647..3561fc8 100644 --- a/fate/src/main/java/org/apache/accumulo/fate/Fate.java +++ b/fate/src/main/java/org/apache/accumulo/fate/Fate.java @@ -99,9 +99,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) {