ivankelly commented on issue #765: Add `isSealed()` to ReadHandle
URL: https://github.com/apache/bookkeeper/issues/765#issuecomment-347828702
 
 
   @sijie If we need #close on all Handle, then there's no need for rename, but 
I was going to propose renaming WriteHandle -> LedgerWriter and ReadHandle 
->LedgerReader. 
   
   There's still in inconsistency of #asyncClose and all other methods. I think 
i'd prefer to remove asyncClose, leave close as autoclosable, and add a method 
to WriteHandle.
   ```
   CompletableFuture<Void> seal();
   ```
   Especially if were going to rename isClosed to isSealed. 
   
   I don't think there's a problem of people calling #close without sealing. If 
it happens, the writer will start writing to the next ledger, but tailers will 
block waiting for the previous ledger to be sealed. This should be fairly 
obvious, and quickly fixed. In any case, there's no risk of data corruption.
   

----------------------------------------------------------------
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

Reply via email to