[ 
https://issues.apache.org/jira/browse/BOOKKEEPER-800?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14220912#comment-14220912
 ] 

Ivan Kelly commented on BOOKKEEPER-800:
---------------------------------------

patch is trivial

> Expose whether a ledger is closed or not
> ----------------------------------------
>
>                 Key: BOOKKEEPER-800
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-800
>             Project: Bookkeeper
>          Issue Type: Bug
>            Reporter: Ivan Kelly
>            Assignee: Ivan Kelly
>             Fix For: 4.4.0, 4.3.1, 4.2.4
>
>         Attachments: 0001-Expose-whether-a-ledger-has-been-closed.patch
>
>
> On issue i could writing the tutorial is that when you open a ledger in 
> non-recovery mode, it's not possible to check if the ledger you opened has 
> been closed or is still been written too. This complicates things when you 
> get to the end of the ledger, as you don't know whether to try for more 
> entries in the same ledger, or to look at the next ledger is the list.
> This jira is to expose this information (it's in the metadata). This method 
> only makes sense for reading. For writing a ledger, you really should know if 
> you closed the ledger or not, and if you don't then you shouldn't be touching 
> it again.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to