Skip to content

Commit 288c192

Browse files
committed
HDFS-16411 RBF: RouterId is NULL when set dfs.federation.router.rpc.enable=false; checkstyle
1 parent 4a01abb commit 288c192

File tree

1 file changed

+3
-3
lines changed
  • hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router

1 file changed

+3
-3
lines changed

hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/Router.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,16 +312,16 @@ protected void serviceInit(Configuration configuration) throws Exception {
312312

313313
/**
314314
* Set the router id if not set to prevent RouterHeartbeatService
315-
* update state store with a null router id
315+
* update state store with a null router id.
316316
*/
317317
private void checkRouterId() {
318318
if (this.routerId == null) {
319-
InetSocketAddress rpcAddress = conf.getSocketAddr(
319+
InetSocketAddress ConfRpcAddress = conf.getSocketAddr(
320320
RBFConfigKeys.DFS_ROUTER_RPC_BIND_HOST_KEY,
321321
RBFConfigKeys.DFS_ROUTER_RPC_ADDRESS_KEY,
322322
RBFConfigKeys.DFS_ROUTER_RPC_ADDRESS_DEFAULT,
323323
RBFConfigKeys.DFS_ROUTER_RPC_PORT_DEFAULT);
324-
setRpcServerAddress(rpcAddress);
324+
setRpcServerAddress(ConfRpcAddress);
325325
}
326326
}
327327

0 commit comments

Comments
 (0)