Skip to content

Commit 38614d0

Browse files
authored
HDFS-16330. Fix incorrect placeholder for Exception logs in DiskBalancer (#3672)
Signed-off-by: Akira Ajisaka <[email protected]>
1 parent dc751df commit 38614d0

File tree

1 file changed

+3
-3
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode

1 file changed

+3
-3
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DiskBalancer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ private void closePoolIters(List<FsVolumeSpi.BlockIterator> poolIters) {
989989
try {
990990
iter.close();
991991
} catch (IOException ex) {
992-
LOG.error("Error closing a block pool iter. ex: {}", ex);
992+
LOG.error("Error closing a block pool iter. ex: ", ex);
993993
}
994994
}
995995
}
@@ -1124,7 +1124,7 @@ public void copyBlocks(VolumePair pair, DiskBalancerWorkItem item) {
11241124
startTime);
11251125
item.setSecondsElapsed(secondsElapsed);
11261126
} catch (IOException ex) {
1127-
LOG.error("Exception while trying to copy blocks. error: {}", ex);
1127+
LOG.error("Exception while trying to copy blocks. error: ", ex);
11281128
item.incErrorCount();
11291129
} catch (InterruptedException e) {
11301130
LOG.error("Copy Block Thread interrupted, exiting the copy.");
@@ -1133,7 +1133,7 @@ public void copyBlocks(VolumePair pair, DiskBalancerWorkItem item) {
11331133
this.setExitFlag();
11341134
} catch (RuntimeException ex) {
11351135
// Exiting if any run time exceptions.
1136-
LOG.error("Got an unexpected Runtime Exception {}", ex);
1136+
LOG.error("Got an unexpected Runtime Exception ", ex);
11371137
item.incErrorCount();
11381138
this.setExitFlag();
11391139
}

0 commit comments

Comments
 (0)