[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12973333#action_12973333
 ] 

dhruba borthakur commented on ZOOKEEPER-465:
--------------------------------------------

Please pardon my ignorance, but your approach works because nobody can append 
new entries to a ledger after it is closed, right?

Also, what will be the semantics of a concurrent reader? For example, if 
process A is writing to a ledger while at the same time another process B wants 
to find the length of the ledger, Is this possible?

> Ledger size in bytes
> --------------------
>
>                 Key: ZOOKEEPER-465
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-465
>             Project: ZooKeeper
>          Issue Type: New Feature
>          Components: contrib-bookkeeper
>            Reporter: Flavio Junqueira
>
> It is currently easy to know how many entries a ledger has, but there is no 
> easy way to know the total number of bytes in a ledger. The idea of this jira 
> is to add a method that gives the number of bytes in a closed ledger. My 
> current idea is to simply have the writer counting the number of bytes 
> written and store it to ZooKeeper.  

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to