sijie commented on issue #774: Open should run recovery by default URL: https://github.com/apache/bookkeeper/pull/774#issuecomment-347371758 "Personally, I consider that I know what I'm doing in this area, and I got it wrong when updating the tutorial, and I only spotted the mistake by pure chance. As for reading the docs, I generally only do that when something is non-obvious. createOpenLedgerOp looks easy to use and its usage seems obvious, so why would people carefully read the docs for it?" @ivankelly "why would people carefully read the docs for it?" - Because you built the original API. In your mind, "open a ledger" is fencing and close the ledger. It doesn't mean people will have same assumption that "open a ledger" will fence and close the ledger. In contrast, if you ask most of the people who doesn't work with bookkeeper before, what are their expectations of a `open for read` behavior. I believe most of people will assume `open for read` generally has no side effects to the ledger or the writer. A default behavior for `open` should be as general as other storage system, no side effects (you can open as many time as you can without impacting others), easy to reason about without reading any documentation. `open-to-close` behavior is a special case for general `open`, it is used when a leader (writer) failed, it wants to fence the previous ledger and open a new one. because `open-to-close` is a special case, it should be called out explicitly.
---------------------------------------------------------------- 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
