goiri commented on a change in pull request #2284:
URL: https://github.com/apache/hadoop/pull/2284#discussion_r485034706
##########
File path:
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/Router.java
##########
@@ -553,11 +553,18 @@ public void verifyToken(DelegationTokenIdentifier
tokenId, byte[] password)
protected NamenodeHeartbeatService createLocalNamenodeHeartbeatService() {
// Detect NN running in this machine
String nsId = DFSUtil.getNamenodeNameServiceId(conf);
+
+ if (nsId == null) {
+ LOG.error("Cannot find nameservice id for local {}", nsId);
Review comment:
Can we add a test for this situation?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]