HBASE-13004 Addendum fixes timeout value in message (Andrey Stepachev)
This commit is contained in:
parent
a3f495f20d
commit
ede20aa288
|
@ -207,11 +207,11 @@ public final class Waiter {
|
||||||
} else if (failIfTimeout) {
|
} else if (failIfTimeout) {
|
||||||
String msg = getExplanation(predicate);
|
String msg = getExplanation(predicate);
|
||||||
fail(MessageFormat
|
fail(MessageFormat
|
||||||
.format("Waiting timed out after [{0}] msec" + msg, adjustedTimeout));
|
.format("Waiting timed out after [{0}] msec", adjustedTimeout) + msg);
|
||||||
} else {
|
} else {
|
||||||
String msg = getExplanation(predicate);
|
String msg = getExplanation(predicate);
|
||||||
LOG.warn(
|
LOG.warn(
|
||||||
MessageFormat.format("Waiting timed out after [{0}] msec" + msg, adjustedTimeout));
|
MessageFormat.format("Waiting timed out after [{0}] msec", adjustedTimeout) + msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (eval || interrupted) ? (System.currentTimeMillis() - started) : -1;
|
return (eval || interrupted) ? (System.currentTimeMillis() - started) : -1;
|
||||||
|
|
Loading…
Reference in New Issue