ArvinDevel commented on a change in pull request #925: Issue611: restrict max 
ensemble change numbers
URL: https://github.com/apache/bookkeeper/pull/925#discussion_r160305510
 
 

 ##########
 File path: 
bookkeeper-server/src/test/java/org/apache/bookkeeper/client/MockBookKeeperTestCase.java
 ##########
 @@ -335,7 +395,14 @@ protected void setupBookieClientReadEntry() {
             executor.submitOrdered(ledgerId, () -> {
                 DigestManager macManager = new CRC32DigestManager(ledgerId);
                 fencedLedgers.add(ledgerId);
-                MockEntry mockEntry = getMockLedgerEntry(ledgerId, 
bookieSocketAddress, entryId);
+                MockEntry mockEntry = null;
+                try {
+                    mockEntry = getMockLedgerEntry(ledgerId, 
bookieSocketAddress, entryId);
+                } catch (BKException bke) {
+                    LOG.info("readEntryAndFenceLedger - occur BKException 
{}@{} at {}", entryId, ledgerId,
+                            bookieSocketAddress);
+                    callback.readEntryComplete(bke.getCode(), ledgerId, 
entryId, null, args[5]);
 
 Review comment:
   The return is in the last line of the call, just as the original.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to