浏览代码

HDFS-16290.Make log more standardized when executing verifyAndSetNamespaceInfo(). (#3600)

HDFS-16290.Make log more standardized when executing verifyAndSetNamespaceInfo(). (#3600). Contributed by JiangHua Zhu.
jianghuazhu 3 年之前
父节点
当前提交
0a68413a4f

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPOfferService.java

@@ -378,7 +378,7 @@ class BPOfferService {
 
 
     if(nsInfo.getState() == HAServiceState.ACTIVE
     if(nsInfo.getState() == HAServiceState.ACTIVE
         && bpServiceToActive == null) {
         && bpServiceToActive == null) {
-      LOG.info("Acknowledging ACTIVE Namenode during handshake" + actor);
+      LOG.info("Acknowledging ACTIVE Namenode during handshake {}", actor);
       bpServiceToActive = actor;
       bpServiceToActive = actor;
     }
     }