You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Sijie Guo (JIRA)" <ji...@apache.org> on 2012/06/02 02:52:23 UTC

[jira] [Commented] (BOOKKEEPER-282) When BK Cluster is not available then also BK Client able to create Ledger in zookeeper.

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

Sijie Guo commented on BOOKKEEPER-282:
--------------------------------------

I am not sure I understand your issue correctly. But in LedgerCreate procedure, bookkeeper would first try to pickup bookies to form an semble before creating a ledger znode in zookeeper. So if there is not enough bookie existed in the cluster, no znode would be created in zookeeper.

{code}
        ArrayList<InetSocketAddress> ensemble;
        try {
            ensemble = bk.bookieWatcher.getNewBookies(metadata.ensembleSize);
        } catch (BKNotEnoughBookiesException e) {
            LOG.error("Not enough bookies to create ledger");
            cb.createComplete(e.getCode(), null, this.ctx);
            return;
        }
{code}

so could you give a detail description about your issue?
                
> When BK Cluster is not available then also BK Client able to create Ledger in zookeeper.
> ----------------------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-282
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-282
>             Project: Bookkeeper
>          Issue Type: Bug
>          Components: bookkeeper-client
>            Reporter: surendra singh lilhore
>            Priority: Minor
>
> When bookie cluster is not available then also BK client able to create ledger znode in zookeeper. Means this ledger is not useful for Bookkeeper server.

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