sijie commented on issue #774: Open should run recovery by default
URL: https://github.com/apache/bookkeeper/pull/774#issuecomment-346908459
 
 
   I don't think we should go down with split. It doesn't make any sense. The 
whole idea of a fluent style API is to avoid such split. Coming from storage 
background, it is more natural to have there in mind: create to get a handle to 
write, open to get a handle to read. Recovery or no recovery is the flag 
provided to open, indicating what will be the open behavior. Ideally this 
should be done with read flags, recovery is the flag of O_FENCE or O_RECOVERY. 
It should be as easy and natural as how people use a filesystem: open a file to 
read, open doesn't have any impacts to writers unless a O_FENCE flag is 
explicitly provided. from a storage system perspective, I would prefer a no 
recovery behavior as default. People shouldn't think too much about open 
implicitly fence and close a ledger. But again, I wouldn't block this PR, if 
other people want to keep the default behavior. Lastly, if we want BookKeeper 
to grow beyond a logging system to become a storage, we need to think and 
design a API that people have common sense on a storage system.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to