Skip to content

Commit 54130c8

Browse files
committed
HDFS-16411 RBF: RouterId is NULL when set dfs.federation.router.rpc.enable=false; checkstyle
1 parent 6a6a1da commit 54130c8

File tree

1 file changed

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

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,6 @@ public RouterRpcServer getRpcServer() {
430430
protected void setRpcServerAddress(InetSocketAddress address) {
431431
this.rpcAddress = address;
432432

433-
try {
434-
InetAddress.getLocalHost();
435-
} catch (UnknownHostException e) {
436-
e.printStackTrace();
437-
}
438-
439433
// Use the RPC address as our unique router Id
440434
if (this.rpcAddress != null) {
441435
try {

0 commit comments

Comments
 (0)