HDFS-16108. Fix incorrect log placeholders used in JournalNodeSyncer (#3169)

(cherry picked from commit da575a53cf)
This commit is contained in:
Viraj Jasani 2021-07-05 06:53:24 +05:30 committed by Akira Ajisaka
parent aec8c9188a
commit 2d56335a3d
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50

View File

@ -175,7 +175,7 @@ private void startSyncJournalsDaemon() {
}
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 @@ private boolean downloadMissingLogSegment(URL url, RemoteEditLog log)
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");