gaozhangmin commented on code in PR #3542:
URL: https://github.com/apache/bookkeeper/pull/3542#discussion_r997685296


##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/client/PendingReadOp.java:
##########
@@ -406,6 +413,14 @@ synchronized BookieId sendNextRead() {
 
             try {
                 BookieId to = ensemble.get(bookieIndex);
+                if (clientCtx.getBookieWatcher().isBookieUnavailable(to)) {
+                    if (LOG.isDebugEnabled()) {
+                        LOG.debug("Skipping send read request to unavailable 
bookie: {}", to.getId());
+                    }
+                    erroredReplicas.set(replica);
+                    sentReplicas.set(replica);
+                    return null;

Review Comment:
   We could add a configuration, whether allowing to skip read from unavailable 
bookie



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to