Reidddddd commented on code in PR #4034:
URL: https://github.com/apache/bookkeeper/pull/4034#discussion_r1266154862
##########
stream/distributedlog/core/src/main/java/org/apache/distributedlog/AppendOnlyStreamWriter.java:
##########
@@ -68,6 +68,20 @@ public void force(boolean metadata) throws IOException {
}
}
+ public void flush(boolean waitForCompletion) throws IOException {
+ try {
+ if (waitForCompletion) {
+ FutureUtils.result(logWriter.flush());
+ } else {
+ logWriter.flush();
+ }
+ } catch (IOException ioe) {
+ throw ioe;
+ } catch (Exception ex) {
+ throw new UnexpectedException("unexpected exception in
AppendOnlyStreamWriter.force", ex);
Review Comment:
Your comment is not changed... still **AppendOnlyStreamWriter.force**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]