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

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

surendra singh lilhore created BOOKKEEPER-282:
-------------------------------------------------

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

        

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

Posted by "Sijie Guo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288704#comment-13288704 ] 

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

@Rakesh

yes. this issue existed in 4.0.0. has been fixed in BOOKKEEPER-153.
                
> 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

        

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

Posted by "surendra singh lilhore (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

surendra singh lilhore updated BOOKKEEPER-282:
----------------------------------------------

    Affects Version/s: 4.0.0
    
> 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
>    Affects Versions: 4.0.0
>            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

        

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

Posted by "surendra singh lilhore (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289135#comment-13289135 ] 

surendra singh lilhore commented on BOOKKEEPER-282:
---------------------------------------------------

yes, i am using BK 4.0.0 version. i will update the affected version.
                
> 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
>    Affects Versions: 4.0.0
>            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

        

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

Posted by "surendra singh lilhore (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13464567#comment-13464567 ] 

surendra singh lilhore commented on BOOKKEEPER-282:
---------------------------------------------------

@Uma

yes, this is not a major issue and fixed is available in new versions then we can close it.
                
> 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
>    Affects Versions: 4.0.0
>            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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13463911#comment-13463911 ] 

Uma Maheswara Rao G commented on BOOKKEEPER-282:
------------------------------------------------

@Surendra, are you expecting this to be fixed in 4.0.0?
Since this is already fixed in 4.1, It may be ok to close this JIRA as issue looks to be not a major or critical bug to backport BK-153 for me. If you feel this needs to be back ported, then I can take a look.

Thanks
Uma
                
> 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
>    Affects Versions: 4.0.0
>            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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Uma Maheswara Rao G (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BOOKKEEPER-282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G resolved BOOKKEEPER-282.
--------------------------------------------

    Resolution: Won't Fix
    
> 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
>    Affects Versions: 4.0.0
>            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
For more information on JIRA, see: http://www.atlassian.com/software/jira

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

Posted by "Rakesh R (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BOOKKEEPER-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13288589#comment-13288589 ] 

Rakesh R commented on BOOKKEEPER-282:
-------------------------------------

@Sijie
In BK 4.0.0 version, I'm just seeing the 'LedgerCreateOp' logic is reverse, first creating zkledgermetadata and then checking for ensembles as follows:

{noformat}
    /**
     * Initiates the operation
     */
    public void initiate() {
        bk.getLedgerManager().newLedgerPath(this);
    }

    public void operationComplete(int rc, String ledgerPath) {
    ....
    ....
         /*
         * Adding bookies to ledger handle
         */
    }
{noformat}


@Surendra 
Could you please update the bookkeeper version?
                
> 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

        

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

Posted by "Sijie Guo (JIRA)" <ji...@apache.org>.
    [ 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