HDFS-16330. Fix incorrect placeholder for Exception logs in DiskBalancer (#3672)

Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
(cherry picked from commit 38614d05e1)
This commit is contained in:
Viraj Jasani 2021-11-18 21:25:39 +05:30 committed by Akira Ajisaka
parent 4036213273
commit 2f587bf15a
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
1 changed files with 3 additions and 3 deletions

View File

@ -989,7 +989,7 @@ private void closePoolIters(List<FsVolumeSpi.BlockIterator> poolIters) {
try {
iter.close();
} catch (IOException ex) {
LOG.error("Error closing a block pool iter. ex: {}", ex);
LOG.error("Error closing a block pool iter. ex: ", ex);
}
}
}
@ -1124,7 +1124,7 @@ public void copyBlocks(VolumePair pair, DiskBalancerWorkItem item) {
startTime);
item.setSecondsElapsed(secondsElapsed);
} catch (IOException ex) {
LOG.error("Exception while trying to copy blocks. error: {}", ex);
LOG.error("Exception while trying to copy blocks. error: ", ex);
item.incErrorCount();
} catch (InterruptedException e) {
LOG.error("Copy Block Thread interrupted, exiting the copy.");
@ -1133,7 +1133,7 @@ public void copyBlocks(VolumePair pair, DiskBalancerWorkItem item) {
this.setExitFlag();
} catch (RuntimeException ex) {
// Exiting if any run time exceptions.
LOG.error("Got an unexpected Runtime Exception {}", ex);
LOG.error("Got an unexpected Runtime Exception ", ex);
item.incErrorCount();
this.setExitFlag();
}