Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 75E039B52 for ; Fri, 10 Feb 2012 10:29:00 +0000 (UTC) Received: (qmail 92232 invoked by uid 500); 10 Feb 2012 10:29:00 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 92129 invoked by uid 500); 10 Feb 2012 10:28:58 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 91133 invoked by uid 99); 10 Feb 2012 10:28:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 10:28:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Feb 2012 10:28:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 2374E1AE796 for ; Fri, 10 Feb 2012 10:28:06 +0000 (UTC) Date: Fri, 10 Feb 2012 10:28:06 +0000 (UTC) From: "Hudson (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <1809828117.23741.1328869686146.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <866177694.8926.1328630459589.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-5345) CheckAndPut doesn't work when value is empty byte[] MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205343#comment-13205343 ] Hudson commented on HBASE-5345: ------------------------------- Integrated in HBase-TRUNK #2656 (See [https://builds.apache.org/job/HBase-TRUNK/2656/]) HBASE-5345 CheckAndPut doesn't work when value is empty byte[] (Evert Arckens) tedyu : Files : * /hbase/trunk/CHANGES.txt * /hbase/trunk/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java * /hbase/trunk/src/test/java/org/apache/hadoop/hbase/regionserver/TestHRegion.java > CheckAndPut doesn't work when value is empty byte[] > --------------------------------------------------- > > Key: HBASE-5345 > URL: https://issues.apache.org/jira/browse/HBASE-5345 > Project: HBase > Issue Type: Bug > Affects Versions: 0.92.0 > Reporter: Evert Arckens > Assignee: Evert Arckens > Fix For: 0.94.0, 0.92.1 > > Attachments: 5345-v2.txt, 5345.txt, checkAndMutateEmpty-HBASE-5345.patch > > > When a value contains an empty byte[] and then a checkAndPut is performed with an empty byte[] , the operation will fail. > For example: > Put put = new Put(row1); > put.add(fam1, qf1, new byte[0]); > table.put(put); > put = new Put(row1); > put.add(fam1, qf1, val1); > table.checkAndPut(row1, fam1, qf1, new byte[0], put); ---> false > I think this is related to HBASE-3793 and HBASE-3468. > Note that you will also get into this situation when first putting a null value ( put.add(fam1,qf1,null) ), as this value will then be regarded and returned as an empty byte[] upon a get. -- 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