Skip to content

Commit

Permalink
HDFS-17406. Suppress UnresolvedPathException in hdfs router log (#6603)
Browse files Browse the repository at this point in the history
  • Loading branch information
haiyang1987 authored Mar 1, 2024
1 parent 15af529 commit 34bb286
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 34bb286

Please sign in to comment.