From 34bb28649c7ba16585648b1f961ebc95c679c7c5 Mon Sep 17 00:00:00 2001 From: huhaiyang Date: Fri, 1 Mar 2024 19:03:41 +0800 Subject: [PATCH] HDFS-17406. Suppress UnresolvedPathException in hdfs router log (#6603) --- .../hadoop/hdfs/server/federation/router/RouterRpcServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java index 29aa16ff04..2b1045f9d5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java @@ -57,6 +57,7 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.HAUtil; +import org.apache.hadoop.hdfs.protocol.UnresolvedPathException; import org.apache.hadoop.thirdparty.com.google.common.cache.CacheBuilder; import org.apache.hadoop.thirdparty.com.google.common.cache.CacheLoader; import org.apache.hadoop.thirdparty.com.google.common.cache.LoadingCache; @@ -369,7 +370,7 @@ public RouterRpcServer(Configuration conf, Router router, RetriableException.class); this.rpcServer.addSuppressedLoggingExceptions( - StandbyException.class); + StandbyException.class, UnresolvedPathException.class); // The RPC-server port can be ephemeral... ensure we have the correct info InetSocketAddress listenAddress = this.rpcServer.getListenerAddress();