HBASE-13004 Addendum fixes timeout value in message (Andrey Stepachev)

This commit is contained in:
tedyu 2015-02-10 09:43:31 -08:00
parent a3f495f20d
commit ede20aa288
1 changed files with 2 additions and 2 deletions

View File

@ -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;