geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ash...@apache.org
Subject [13/50] [abbrv] incubator-geode git commit: GEODE-485: Logging at debug level on a SocketException while closing the connection
Date Mon, 09 Nov 2015 21:37:04 GMT
GEODE-485: Logging at debug level on a SocketException while closing the connection

This avoids any suspect strings written to logs.


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/59de5551
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/59de5551
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/59de5551

Branch: refs/heads/feature/GEODE-11
Commit: 59de5551e77fbcc1b37227520807834ce45da6da
Parents: fc4bbfc
Author: Sai Boorlagadda <sboorlagadda@pivotal.io>
Authored: Wed Oct 28 11:37:49 2015 -0700
Committer: Sai Boorlagadda <sboorlagadda@pivotal.io>
Committed: Fri Oct 30 11:59:56 2015 -0700

----------------------------------------------------------------------
 .../cache/client/internal/pooling/ConnectionManagerImpl.java    | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/59de5551/gemfire-core/src/main/java/com/gemstone/gemfire/cache/client/internal/pooling/ConnectionManagerImpl.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/cache/client/internal/pooling/ConnectionManagerImpl.java
b/gemfire-core/src/main/java/com/gemstone/gemfire/cache/client/internal/pooling/ConnectionManagerImpl.java
index 5f6dc25..83e4878 100644
--- a/gemfire-core/src/main/java/com/gemstone/gemfire/cache/client/internal/pooling/ConnectionManagerImpl.java
+++ b/gemfire-core/src/main/java/com/gemstone/gemfire/cache/client/internal/pooling/ConnectionManagerImpl.java
@@ -43,6 +43,7 @@ import com.gemstone.gemfire.internal.logging.log4j.LocalizedMessage;
 import com.gemstone.gemfire.security.GemFireSecurityException;
 import com.gemstone.org.jgroups.util.StringId;
 
+import java.net.SocketException;
 import java.util.ArrayList;
 import java.util.Collections;
 import java.util.HashMap;
@@ -1171,6 +1172,10 @@ public class ConnectionManagerImpl implements ConnectionManager {
         if (!pc.isDestroyed()) {
           try {
             pc.internalClose(keepAlive);
+          } catch(SocketException se) {
+              logger.info(LocalizedMessage.create(
+                      LocalizedStrings.ConnectionManagerImpl_ERROR_CLOSING_CONNECTION_TO_SERVER_0,
+                      pc.getServer()), se);
           } catch(Exception e) {
             logger.warn(LocalizedMessage.create(
                 LocalizedStrings.ConnectionManagerImpl_ERROR_CLOSING_CONNECTION_TO_SERVER_0,



Mime
View raw message