You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2018/01/09 01:57:55 UTC

[GitHub] ArvinDevel commented on a change in pull request #925: Issue611: restrict max ensemble change numbers

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

 ##########
 File path: bookkeeper-server/src/test/java/org/apache/bookkeeper/client/MockBookKeeperTestCase.java
 ##########
 @@ -118,9 +136,14 @@ public void setup() throws Exception {
         ledgerIdGenerator = mock(LedgerIdGenerator.class);
 
         bk = mock(BookKeeper.class);
+        Whitebox.setInternalState(bk, "bookieWatcher", bookieWatcher);
+        Whitebox.setInternalState(bk, "disableEnsembleChangeFeature", mock(Feature.class));
 
 Review comment:
   the empty object can't achieve the goal. when the `LedgerHandle` call `handleBookieFailure`, the null of `disableEnsembleChangeFeature ` will cause NullPointerException.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services