HDFS-16108. Fix incorrect log placeholders used in JournalNodeSyncer (#3169)
This commit is contained in:
parent
b87bac13e4
commit
da575a53cf
|
@ -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