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

Vinay commented on BOOKKEEPER-300:
----------------------------------

Thanks Uma for taking look at this.

{quote}I think format should just take care of metadata. Storage directories 
anyway will be cleaned if there is no metadata presents related to that 
data.{quote}
If we clean only zookeeper nodes, then bookie itself will not start. In each 
and every storage directory, cookie file will be present. If that information 
present in storage dir and not in storage directory, then bookie will not start.

One thing we can do here. We can delete the only Ledger nodes in zookeeper, 
leaving other nodes ( cookies, LAYOOUT ) as it is. In this case,  storage 
directories will be automatically deleted once the metadata for ledgers not 
available.

{quote}Whether BookKeeper client will expose API for format and BKJM will just 
call it? {quote}
Regarding this, I think API should be provided in both sides BKJM as well as 
BookKeeper.
Let BookKeeper take care of formatting the ledger details in zk. i.e. ledgers 
under /ledgers node.
BKJM can format its own nodes such as inprogress node, edit log segment nodes, 
etc.

One question I have here.
*Format should be implememted as API in server side or Client side.?*
If BKJM also want to call format, which needs to format only ledger details in 
zk, then it would be better to implement at client side. i.e. in BookKeeper 
class.


                
> Create Bookie format command
> ----------------------------
>
>                 Key: BOOKKEEPER-300
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-300
>             Project: Bookkeeper
>          Issue Type: New Feature
>          Components: bookkeeper-server
>    Affects Versions: 4.0.0
>            Reporter: Rakesh R
>         Attachments: BOOKKEEPER-300.patch
>
>
> Provide a bookie format command. Then the admin would just have to run the 
> command on each machine, which will prepare the bookie env
> +Zookeeper paths (znodes):+
> - ledger's root path
> - bookie's available path
> +Directories:+
> - Journal directories
> - Ledger directories

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to