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>
This commit is contained in:
huhaiyang 2023-10-10 10:20:07 +08:00 committed by GitHub
parent b00d605832
commit 85af6c3a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());
}
}