Fix missing format argument (#8331)

This commit is contained in:
Benedict Jin 2019-08-19 16:19:44 +08:00 committed by GitHub
parent cae1361c32
commit 566dc8c719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -220,7 +220,7 @@ public class PartialSegmentMergeTask extends AbstractBatchIndexTask
final Map<Interval, String> intervalToVersion = new HashMap<>(locks.size());
locks.forEach(lock -> {
if (lock.isRevoked()) {
throw new ISE("Lock[%s] is revoked");
throw new ISE("Lock[%s] is revoked", lock);
}
final String mustBeNull = intervalToVersion.put(lock.getInterval(), lock.getVersion());
if (mustBeNull != null) {

View File

@ -485,6 +485,7 @@ public class DirectDruidClient<T> implements QueryRunner<T>
if (res.getStatus().getCode() >= 500) {
throw new RE(
"Error cancelling query[%s]: queriable node returned status[%d] [%s].",
query,
res.getStatus().getCode(),
res.getStatus().getReasonPhrase()
);