zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iv...@apache.org
Subject svn commit: r1499037 - in /zookeeper/bookkeeper/branches/branch-4.2: CHANGES.txt bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java
Date Tue, 02 Jul 2013 17:47:07 GMT
Author: ivank
Date: Tue Jul  2 17:47:06 2013
New Revision: 1499037

URL: http://svn.apache.org/r1499037
Log:
BOOKKEEPER-637: NoSuchEntry exception when reading an entry from a bookie should not print
ERROR level message (mmerli via ivank)

Modified:
    zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt
    zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.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=1499037&r1=1499036&r2=1499037&view=diff
==============================================================================
--- zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt (original)
+++ zookeeper/bookkeeper/branches/branch-4.2/CHANGES.txt Tue Jul  2 17:47:06 2013
@@ -34,6 +34,8 @@ Release 4.2.2 - Unreleased
 
         BOOKKEEPER-620: PerChannelBookieClient race during channel disconnect (ivank)
 
+        BOOKKEEPER-637: NoSuchEntry exception when reading an entry from a bookie should
not print ERROR level message (mmerli via ivank)
+
       hedwig-server:
 
         BOOKKEEPER-579: TestSubAfterCloseSub was put in a wrong package (sijie via ivank)

Modified: zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java
URL: http://svn.apache.org/viewvc/zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java?rev=1499037&r1=1499036&r2=1499037&view=diff
==============================================================================
--- zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java
(original)
+++ zookeeper/bookkeeper/branches/branch-4.2/bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java
Tue Jul  2 17:47:06 2013
@@ -190,11 +190,13 @@ class PendingReadOp implements Enumerati
             }
             if (BKException.Code.NoSuchEntryException == rc) {
                 ++numMissedEntryReads;
+                LOG.info("No such entry found on bookie. entry: {} ledgerId: {} bookie: {}",
new Object[] { entryId,
+                        lh.ledgerId, host });
+            } else {
+                LOG.error(errMsg + " while reading entry: " + entryId + " ledgerId: " + lh.ledgerId
+ " from bookie: "
+                        + host);
             }
 
-            LOG.error(errMsg + " while reading entry: " + entryId + " ledgerId: " + lh.ledgerId
+ " from bookie: "
-                      + host);
-
             int replica = getReplicaIndex(host);
             if (replica == NOT_FOUND) {
                 LOG.error("Received error from a host which is not in the ensemble {} {}.",
host, ensemble);



Mime
View raw message