HBASE-20854 Wrong retries number in RpcRetryingCaller's log message

This commit is contained in:
Allan Yang 2018-07-09 15:20:37 +08:00 committed by Peter Somogyi
parent 5f9316e781
commit b82ef56267
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ public class RpcRetryingCallerImpl<T> implements RpcRetryingCaller<T> {
if (tries > startLogErrorsCnt) { if (tries > startLogErrorsCnt) {
if (LOG.isInfoEnabled()) { if (LOG.isInfoEnabled()) {
StringBuilder builder = new StringBuilder("Call exception, tries=").append(tries) StringBuilder builder = new StringBuilder("Call exception, tries=").append(tries)
.append(", retries=").append(tries).append(", started=") .append(", retries=").append(maxAttempts).append(", started=")
.append((EnvironmentEdgeManager.currentTime() - tracker.getStartTime())) .append((EnvironmentEdgeManager.currentTime() - tracker.getStartTime()))
.append(" ms ago, ").append("cancelled=").append(cancelled.get()) .append(" ms ago, ").append("cancelled=").append(cancelled.get())
.append(", msg=").append(t.getMessage()) .append(", msg=").append(t.getMessage())