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

 ##########
 File path: 
bookkeeper-server/src/test/java/org/apache/bookkeeper/client/MockBookKeeperTestCase.java
 ##########
 @@ -87,7 +101,11 @@
         return 
getMockLedgerContents(ledgerId).computeIfAbsent(bookieSocketAddress, addr -> 
new ConcurrentHashMap<>());
     }
 
-    private MockEntry getMockLedgerEntry(long ledgerId, BookieSocketAddress 
bookieSocketAddress, long entryId) {
+    private MockEntry getMockLedgerEntry(long ledgerId,
+                                         BookieSocketAddress 
bookieSocketAddress, long entryId) throws BKException{
+        if (failedBookies.contains(bookieSocketAddress)) {
+            throw  BKException.create(NoBookieAvailableException);
 
 Review comment:
   fixed

----------------------------------------------------------------
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