diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java index 02b8bb7cc7b..9a647801d04 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java @@ -580,22 +580,19 @@ public class RpcClient { if (socket.getOutputStream() != null) { socket.getOutputStream().close(); } - } catch (IOException e) { - LOG.warn("Not able to close an output stream", e); + } catch (IOException ignored) { // Can happen if the socket is already closed } try { if (socket.getInputStream() != null) { socket.getInputStream().close(); } - } catch (IOException e) { - LOG.warn("Not able to close an input stream", e); + } catch (IOException ignored) { // Can happen if the socket is already closed } try { if (socket.getChannel() != null) { socket.getChannel().close(); } - } catch (IOException e) { - LOG.warn("Not able to close a channel", e); + } catch (IOException ignored) { // Can happen if the socket is already closed } try { socket.close();