eolivelli opened a new pull request #529: WIP - BP-14 Volatile durability preview URL: https://github.com/apache/bookkeeper/pull/529 This is a preview of the work for BP-14 https://cwiki.apache.org/confluence/display/BOOKKEEPER/BP-14+Relax+durability Please note that this work depends on BP-15 (PR #510) because we are going to use the new CreateLedger API. Temporary I have added a lot of overloaded versions of createLedger/createLedgerAdv but using the new API these new methods will not be added. I will try to split the patch in smaller tasks but I will appreciate if you have some cycle to start looking at how it will look like. Most notable changes: - introducing a LedgerType in ledger metadata - changes to wire protocol: optional LedgerType in AddRequest, changes in AddResponse, new protocol messages for the Sync API - changes to LederHandle#sendAddSuccessCallbacks (this is the main change to the LAC Protocol on the client-side) - for volatile durability ledgers LastAddConfirmed will advance only in case of an explicit "sync" - on the Bookie side introduction of SyncCounter on Journal to keep track of which entries have been really persisted durably - new LedgerHandle#sync API (this will be subject to change, it will follow the "new style" of BP-15 APIs) - on close() a sync() will not be performed automatically on volatile durability ledgers Additional notes: - The patch needs rebase - The patch needs a lot of additional testcases ---------------------------------------------------------------- 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
