sijie commented on a change in pull request #873: Issue280: Turn bookie into 
readonly when sortedLedgerStorage failed to flush data
URL: https://github.com/apache/bookkeeper/pull/873#discussion_r157925626
 
 

 ##########
 File path: 
bookkeeper-server/src/test/java/org/apache/bookkeeper/bookie/BookieInitializationTest.java
 ##########
 @@ -781,7 +786,7 @@ public void testPersistBookieStatus() throws Exception {
         bookie = bookieServer.getBookie();
         assertTrue(bookie.isReadOnly());
         // transition to writable mode
-        bookie.doTransitionToWritableMode();
+        ((Bookie.BookieStateManager) 
bookie.getStateManager()).doTransitionToWritableMode();
 
 Review comment:
   @ArvinDevel if you make `Bookie#getStateManager()` return 
`BookieStateManager`, you don't need to cast here.

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