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 febaedec21706..807c2ce3b19bf 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 @@ -900,7 +900,7 @@ T invokeOnNsAsync(RemoteMethod method, Class clazz, IOException ioe, asyncTry(() -> { getRPCClient().invokeSingle(nsId, method, clazz); asyncApply(result -> { - if (result != null && isExpectedClass(clazz, result)) { + if (result != null) { foreach.breakNow(); return result; }