HDFS-16108. Fix incorrect log placeholders used in JournalNodeSyncer (#3169)
(cherry picked from commit da575a53cf
)
This commit is contained in:
parent
aec8c9188a
commit
2d56335a3d
|
@ -175,7 +175,7 @@ public class JournalNodeSyncer {
|
|||
}
|
||||
if (!createEditsSyncDir()) {
|
||||
LOG.error("Failed to create directory for downloading log " +
|
||||
"segments: %s. Stopping Journal Node Sync.",
|
||||
"segments: {}. Stopping Journal Node Sync.",
|
||||
journal.getStorage().getEditsSyncDir());
|
||||
return;
|
||||
}
|
||||
|
@ -467,7 +467,7 @@ public class JournalNodeSyncer {
|
|||
moveSuccess = journal.moveTmpSegmentToCurrent(tmpEditsFile,
|
||||
finalEditsFile, log.getEndTxId());
|
||||
} catch (IOException e) {
|
||||
LOG.info("Could not move %s to current directory.", tmpEditsFile);
|
||||
LOG.info("Could not move {} to current directory.", tmpEditsFile);
|
||||
} finally {
|
||||
if (tmpEditsFile.exists() && !tmpEditsFile.delete()) {
|
||||
LOG.warn("Deleting " + tmpEditsFile + " has failed");
|
||||
|
|
Loading…
Reference in New Issue