zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From si...@apache.org
Subject svn commit: r1575794 - in /zookeeper/bookkeeper/branches/branch-4.2: CHANGES.txt bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java
Date Mon, 10 Mar 2014 02:10:34 GMT
Author: sijie
Date: Mon Mar 10 02:10:33 2014
New Revision: 1575794

URL: http://svn.apache.org/r1575794
Log:
BOOKKEEPER-726: PerChannelBookieClient should print address that it failed to connect to when
it fails to correct (ivank via sijie)

Modified:
    zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt
    zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java

Modified: zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt
URL: http://svn.apache.org/viewvc/zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt?rev=1575794&r1=1575793&r2=1575794&view=diff
==============================================================================
--- zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt (original)
+++ zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt Mon Mar 10 02:10:33 2014
@@ -16,6 +16,8 @@ Release 4.2.3 - 2013-12-04
 
         BOOKKEEPER-714: Logging channel exceptions in PerChannelBookieClient (sijie)
 
+        BOOKKEEPER-726: PerChannelBookieClient should print address that it failed to connect
to when it fails to correct (ivank via sijie)
+
 Release 4.2.2 - 2013-10-02
 
   Backward compatible changes:

Modified: zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java
URL: http://svn.apache.org/viewvc/zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java?rev=1575794&r1=1575793&r2=1575794&view=diff
==============================================================================
--- zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java
(original)
+++ zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/PerChannelBookieClient.java
Mon Mar 10 02:10:33 2014
@@ -199,8 +199,9 @@ public class PerChannelBookieClient exte
                         closeChannel(future.getChannel());
                         return; // pendingOps should have been completed when other channel
connected
                     } else {
-                        LOG.error("Could not connect to bookie: {}, current state {} : ",
-                                  new Object[] { future.getChannel(), state, future.getCause()
});
+                        LOG.error("Could not connect to bookie: {}/{}, current state {} :
",
+                                  new Object[] { future.getChannel(), addr,
+                                                 state, future.getCause() });
                         rc = BKException.Code.BookieHandleNotAvailableException;
                         closeChannel(future.getChannel());
                         channel = null;



Mime
View raw message