Skip to content

Commit 34bb286

Browse files
authored
HDFS-17406. Suppress UnresolvedPathException in hdfs router log (#6603)
1 parent 15af529 commit 34bb286

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
import org.apache.hadoop.fs.Path;
5959
import org.apache.hadoop.hdfs.HAUtil;
60+
import org.apache.hadoop.hdfs.protocol.UnresolvedPathException;
6061
import org.apache.hadoop.thirdparty.com.google.common.cache.CacheBuilder;
6162
import org.apache.hadoop.thirdparty.com.google.common.cache.CacheLoader;
6263
import org.apache.hadoop.thirdparty.com.google.common.cache.LoadingCache;
@@ -369,7 +370,7 @@ public RouterRpcServer(Configuration conf, Router router,
369370
RetriableException.class);
370371

371372
this.rpcServer.addSuppressedLoggingExceptions(
372-
StandbyException.class);
373+
StandbyException.class, UnresolvedPathException.class);
373374

374375
// The RPC-server port can be ephemeral... ensure we have the correct info
375376
InetSocketAddress listenAddress = this.rpcServer.getListenerAddress();

0 commit comments

Comments
 (0)