hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nkey...@apache.org
Subject svn commit: r1504576 - /hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java
Date Thu, 18 Jul 2013 18:14:12 GMT
Author: nkeywal
Date: Thu Jul 18 18:14:11 2013
New Revision: 1504576

URL: http://svn.apache.org/r1504576
Log:
HBASE-8982  Useless logs in ipc.RpcClient(584): Not able to close an output stream

Modified:
    hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java

Modified: hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java?rev=1504576&r1=1504575&r2=1504576&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java
(original)
+++ hbase/branches/0.95/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RpcClient.java
Thu Jul 18 18:14:11 2013
@@ -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();



Mime
View raw message