From a8a8aa18fa860c92b084c1fc58db68babe99bb2e Mon Sep 17 00:00:00 2001 From: Adam Binford Date: Fri, 1 Nov 2024 19:52:19 +0000 Subject: [PATCH] Don't log a warning on a retriable RPCError --- 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 f2830ea..1765e79 100644 --- a/rust/src/hdfs/proxy.rs +++ b/rust/src/hdfs/proxy.rs @@ -154,10 +154,11 @@ impl NameServiceProxy { } // RPCError indicates the call was successfully attempted but had an error, so should be returned immediately Err(HdfsError::RPCError(exception, msg)) if !Self::is_retriable(&exception) => { - warn!("{}: {}", exception, msg); return Err(Self::convert_rpc_error(exception, msg)); } Err(_) if attempts >= self.proxy_connections.len() - 1 => return result, + // Retriable error, do nothing and try the next connection + Err(HdfsError::RPCError(_, _)) => (), Err(e) => { warn!("{:?}", e); }