sijie commented on a change in pull request #814: Issue 568: Refactor
EntryLoggerAllocator to enable preallocation
URL: https://github.com/apache/bookkeeper/pull/814#discussion_r155138195
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/EntryLogger.java
##########
@@ -648,6 +655,13 @@ void stop() {
allocatorExecutor.shutdown();
LOG.info("Stopped entry logger preallocator.");
}
+
+ /**
+ * get the preallocation for tests.
+ */
+ protected Future<BufferedLogChannel> getPreallocation(){
Review comment:
nit: I think `getPreallocationFuture()` is better. You can remove
`protected` to make the method package private, because the test and class are
in same package.
----------------------------------------------------------------
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