Skip to content

Commit 47c5931

Browse files
authored
Don't log a warning on a retriable RPCError (#143)
1 parent dd63852 commit 47c5931

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rust/src/hdfs/proxy.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,11 @@ impl NameServiceProxy {
154154
}
155155
// RPCError indicates the call was successfully attempted but had an error, so should be returned immediately
156156
Err(HdfsError::RPCError(exception, msg)) if !Self::is_retriable(&exception) => {
157-
warn!("{}: {}", exception, msg);
158157
return Err(Self::convert_rpc_error(exception, msg));
159158
}
160159
Err(_) if attempts >= self.proxy_connections.len() - 1 => return result,
160+
// Retriable error, do nothing and try the next connection
161+
Err(HdfsError::RPCError(_, _)) => (),
161162
Err(e) => {
162163
warn!("{:?}", e);
163164
}

0 commit comments

Comments
 (0)