jvrao commented on a change in pull request #670: BP-14 Relax Durability -
patch 1 Introducing LedgerType
URL: https://github.com/apache/bookkeeper/pull/670#discussion_r147570757
##########
File path:
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/LedgerDescriptorImpl.java
##########
@@ -122,7 +123,7 @@ ByteBuf getExplicitLac() {
result = logFenceResult = SettableFuture.create();
}
ByteBuf entry = createLedgerFenceEntry(ledgerId);
- journal.logAddEntry(entry, (rc, ledgerId, entryId, addr, ctx) -> {
+ journal.logAddEntry(entry, LedgerType.FORCE_ON_JOURNAL, (rc, ledgerId,
entryId, addr, ctx) -> {
Review comment:
Just repeating my comment. We must not overload ledger type to enforce
immediate flush/persist. If needed we need to add another argument.
----------------------------------------------------------------
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