HBASE-9313 NamespaceJanitor is spammy when the namespace table moves

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1518332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jean-Daniel Cryans 2013-08-28 19:16:54 +00:00
parent 695c6269fc
commit 39f7dc4ca3
1 changed files with 4 additions and 2 deletions

View File

@ -117,8 +117,10 @@ public class RpcRetryingCaller<T> {
callable.prepare(tries != 0); // if called with false, check table status on ZK callable.prepare(tries != 0); // if called with false, check table status on ZK
return callable.call(); return callable.call();
} catch (Throwable t) { } catch (Throwable t) {
LOG.warn("Call exception, tries=" + tries + ", retries=" + retries + ", retryTime=" + if (LOG.isTraceEnabled()) {
(EnvironmentEdgeManager.currentTimeMillis() - this.globalStartTime) + "ms", t); LOG.trace("Call exception, tries=" + tries + ", retries=" + retries + ", retryTime=" +
(EnvironmentEdgeManager.currentTimeMillis() - this.globalStartTime) + "ms", t);
}
// translateException throws exception when should not retry: i.e. when request is bad. // translateException throws exception when should not retry: i.e. when request is bad.
t = translateException(t); t = translateException(t);
callable.throwable(t, retries != 1); callable.throwable(t, retries != 1);