Skip to content

Commit

Permalink
ignore failure if method not found
Browse files Browse the repository at this point in the history
  • Loading branch information
shbhmrzd committed Jan 4, 2024
1 parent ede9537 commit ea48e54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rust/src/hdfs/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit ea48e54

Please sign in to comment.