HDFS-16330. Fix incorrect placeholder for Exception logs in DiskBalancer (#3672)
Signed-off-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
parent
dc751df63b
commit
38614d05e1
@ -989,7 +989,7 @@ private void closePoolIters(List<FsVolumeSpi.BlockIterator> poolIters) {
|
|||||||
try {
|
try {
|
||||||
iter.close();
|
iter.close();
|
||||||
} catch (IOException ex) {
|
} 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);
|
startTime);
|
||||||
item.setSecondsElapsed(secondsElapsed);
|
item.setSecondsElapsed(secondsElapsed);
|
||||||
} catch (IOException ex) {
|
} 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();
|
item.incErrorCount();
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
LOG.error("Copy Block Thread interrupted, exiting the copy.");
|
LOG.error("Copy Block Thread interrupted, exiting the copy.");
|
||||||
@ -1133,7 +1133,7 @@ public void copyBlocks(VolumePair pair, DiskBalancerWorkItem item) {
|
|||||||
this.setExitFlag();
|
this.setExitFlag();
|
||||||
} catch (RuntimeException ex) {
|
} catch (RuntimeException ex) {
|
||||||
// Exiting if any run time exceptions.
|
// Exiting if any run time exceptions.
|
||||||
LOG.error("Got an unexpected Runtime Exception {}", ex);
|
LOG.error("Got an unexpected Runtime Exception ", ex);
|
||||||
item.incErrorCount();
|
item.incErrorCount();
|
||||||
this.setExitFlag();
|
this.setExitFlag();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user