hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6725) Check and Put can fail when using locks
Date Fri, 07 Sep 2012 17:41:07 GMT

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

Ted Yu commented on HBASE-6725:
-------------------------------

nit:
{code}
    for(int c : counts) Assert.assertEquals(c, 1);
{code}
c and 1 should be exchanged so that the assertion failure is clear to the user.

Does this only fail with an empty array as expected value ?

It would be nice if you can provide patch for this issue.
                
> Check and Put can fail when using locks
> ---------------------------------------
>
>                 Key: HBASE-6725
>                 URL: https://issues.apache.org/jira/browse/HBASE-6725
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>    Affects Versions: 0.90.4
>         Environment: tested on mac os x
>            Reporter: Nicolas ThiƩbaud
>         Attachments: CAPwithLocks.zip, TestCase_HBASE_6725.patch
>
>
> When using CAP with an empty array as expected value and using a lock on the corresponding
row, hbase may allow a Put even if the value was already there. 

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

Mime
View raw message