HDFS-17406. Suppress UnresolvedPathException in hdfs router log (#6603)

This commit is contained in:
huhaiyang 2024-03-01 19:03:41 +08:00 committed by GitHub
parent 15af52954f
commit 34bb28649c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();