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_r157925749
 
 

 ##########
 File path: 
bookkeeper-server/src/test/java/org/apache/bookkeeper/test/BookKeeperClusterTestCase.java
 ##########
 @@ -723,4 +724,31 @@ public Auditor getAuditor(int timeout, TimeUnit unit) 
throws Exception {
     public static boolean isCreatedFromIp(BookieSocketAddress addr) {
         return addr.getSocketAddress().toString().startsWith("/");
     }
+
+    /**
+     * Null implementation of StateManager, which will be used in 
ledgerStorage tests.
+     */
+    public static class SimpleStateManager implements StateManager {
+
+        @Override
+        public void close() {
+
+        }
+
+        @Override
+        public Future<Void> registerBookie(boolean throwException) {
+            return null;
 
 Review comment:
   `return Future.Void()`?

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