eolivelli commented on issue #671: WIP - BP-14 Relax Durability - patch 2 - force() API for FORCE_DEFERRED_ON_JOURNAL LedgerType URL: https://github.com/apache/bookkeeper/pull/671#issuecomment-340493958 @sijie you were right. I have dropped SyncCursor from Journal and moved to Bookie. Using your approach the recovery is feasible and I have a test case which failed and now it is working. I have to cover a remaining point for this patch to be complete (IMHO). We have to discard such cursor when the bookie deletes the ledger. I have two ideas: 1) this cursors are in memory only and populated only during writes. If you restart the bookie data is cleared. It is not a great amount of memory. We can live with this minimal memory leak. 2) Leverage GarbageCollectorThread and notify to the bookie when the ledger is deleted from bookie, this way the bookie can discard the cursor for the ledger
---------------------------------------------------------------- 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
