You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Ivan Kelly (JIRA)" <ji...@apache.org> on 2014/11/21 14:30:33 UTC

[jira] [Created] (BOOKKEEPER-800) Expose whether a ledger is closed or not

Ivan Kelly created BOOKKEEPER-800:
-------------------------------------

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


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)