From ea48e54130273fdd51b4fa776e38d53a3c88e798 Mon Sep 17 00:00:00 2001 From: shbhmrzd Date: Thu, 4 Jan 2024 18:58:16 +0530 Subject: [PATCH] ignore failure if method not found --- rust/src/hdfs/proxy.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/src/hdfs/proxy.rs b/rust/src/hdfs/proxy.rs index 9d7479e..eb25410 100644 --- a/rust/src/hdfs/proxy.rs +++ b/rust/src/hdfs/proxy.rs @@ -117,7 +117,8 @@ impl NameServiceProxy { .map(|_| ()) .or_else(|err| match err { HdfsError::RPCError(class, _) - if class == "java.lang.UnsupportedOperationException" => + if class == "java.lang.UnsupportedOperationException" + || class == "org.apache.hadoop.ipc.RpcNoSuchMethodException" => { Ok(()) }