Przeglądaj źródła

HDFS-17217. Add lifeline RPC start up log when NameNode#startCommonServices (#6154). Contributed by Haiyang Hu.

Reviewed-by:  Shilun Fan <slfan1989@apache.org>
Reviewed-by: Tao Li <tomscut@apache.org>
Signed-off-by: Shuyan Zhang <zhangshuyan@apache.org>
huhaiyang 1 rok temu
rodzic
commit
85af6c3a28

+ 5 - 3
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java

@@ -1010,10 +1010,12 @@ public class NameNode extends ReconfigurableBase implements
         LOG.warn("ServicePlugin " + p + " could not be started", t);
       }
     }
-    LOG.info(getRole() + " RPC up at: " + getNameNodeAddress());
+    LOG.info("{} RPC up at: {}.", getRole(), getNameNodeAddress());
     if (rpcServer.getServiceRpcAddress() != null) {
-      LOG.info(getRole() + " service RPC up at: "
-          + rpcServer.getServiceRpcAddress());
+      LOG.info("{} service RPC up at: {}.", getRole(), rpcServer.getServiceRpcAddress());
+    }
+    if (rpcServer.getLifelineRpcAddress() != null) {
+      LOG.info("{} lifeline RPC up at: {}.", getRole(), rpcServer.getLifelineRpcAddress());
     }
   }