From 2a1451aa0e5b21f62df2195769797bd55bbb8f37 Mon Sep 17 00:00:00 2001 From: Chen Liang Date: Fri, 12 Jul 2019 12:58:08 -0700 Subject: [PATCH] HDFS-13791. Amend fix LOG string format. --- .../hadoop/hdfs/server/namenode/FSEditLogLoader.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java index 0d86b76652b..920a7275f8d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java @@ -184,12 +184,12 @@ public class FSEditLogLoader { LogAction postLogAction = loadEditsLogHelper.record("post", endTime, numEdits, edits.length(), endTime - startTime); if (postLogAction.shouldLog()) { - FSImage.LOG.info("Loaded {} edits file(s) (the last named {}) of " + - "total size {}, total edits {}, total load time {} ms", - postLogAction.getCount(), edits.getName(), - postLogAction.getStats(1).getSum(), - postLogAction.getStats(0).getSum(), - postLogAction.getStats(2).getSum()); + FSImage.LOG.info("Loaded " + postLogAction.getCount() + + " edits file(s) (the last named " + edits.getName() + + ") of total size " + postLogAction.getStats(1).getSum() + + ", total edits " + postLogAction.getStats(0).getSum() + + ", total load time " + postLogAction.getStats(2).getSum() + + " ms"); } return numEdits; } finally {