Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE0EB1748C for ; Mon, 2 Nov 2015 06:50:54 +0000 (UTC) Received: (qmail 1350 invoked by uid 500); 2 Nov 2015 06:50:52 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 1289 invoked by uid 500); 2 Nov 2015 06:50:52 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 1277 invoked by uid 99); 2 Nov 2015 06:50:52 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2015 06:50:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2E977C070B for ; Mon, 2 Nov 2015 06:50:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.881 X-Spam-Level: ** X-Spam-Status: No, score=2.881 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 4tnumZSnl0wZ for ; Mon, 2 Nov 2015 06:50:45 +0000 (UTC) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id E3743207D6 for ; Mon, 2 Nov 2015 06:50:44 +0000 (UTC) Received: by lfbn126 with SMTP id n126so57128142lfb.2 for ; Sun, 01 Nov 2015 22:50:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kHqNzXaU/5e6Y0ljp75vp3C8gl6ksM8aoLeLE66/yP0=; b=f1hlr9msxE5KzcoVwnJ84vKF4nIJn3exbclMsiiCD8rXe9tfIyM0rXxUyJBVIpxX1c lXfJW5TAVjnq97lwMqlhefhyMp8bRnnS6dnfW9O1C0/NbOe775tK8z8P9YhYs6fXGNyV O/bjxFBR/pPTqVHne2UL4OvG1p3dBxcMFDKgTUrCb+7stQkdBmrGmOP8GzLPgCPfHXwj G8tnk3jS9u32lQ+EGHrtjF8odK4Qmtc9v+FebxEBtLwe+vyc0IPkalnnsPDbXrl4gQl5 W00CuNhpNxkUlI6bfORMV9vOmntKbbGdTNOLHtOuG2WdFRYheFkvLJpKfYiZqW5WmOzL Gkew== MIME-Version: 1.0 X-Received: by 10.25.161.13 with SMTP id k13mr6173836lfe.25.1446447044398; Sun, 01 Nov 2015 22:50:44 -0800 (PST) Received: by 10.112.168.68 with HTTP; Sun, 1 Nov 2015 22:50:44 -0800 (PST) In-Reply-To: <72dd2c48875386a8341ca999d1363202@mail.gmail.com> References: <72dd2c48875386a8341ca999d1363202@mail.gmail.com> Date: Mon, 2 Nov 2015 12:20:44 +0530 Message-ID: Subject: Re: delete of cells with visibility expressions From: Anoop John To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a11403c6644926f0523893294 --001a11403c6644926f0523893294 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I believe it is a bug.. I think I know the reason also.. Can you file a jira? We can discuss under that. Thanks for the test. -Anoop- On Sat, Oct 31, 2015 at 12:45 AM, Anoop Sharma wrote: > Thanks Ram. > > we are using hbase 1.0.2. > > anoop > > -----Original Message----- > From: ramkrishna vasudevan [mailto:ramkrishna.s.vasudevan@gmail.com] > Sent: Thursday, October 29, 2015 10:22 PM > To: user@hbase.apache.org > Subject: Re: delete of cells with visibility expressions > > Hi Anoop > > Which version of the HBase are you using? This got solved in the latest > version of 0.98 and above. Could you try that? I just reproduced this an= d > this problem no longer occurs. > > Regards > Ram > > On Fri, Oct 30, 2015 at 3:26 AM, Anoop Sharma > wrote: > > > hi > > > > running into an issue related to visibility expressions and delete. > > > > Example run from hbase shell is listed below. > > > > Will appreciate any help on this issue. > > > > thanks. > > > > > > > > In the example below, user running queries has =E2=80=98MANAGER=E2=80= =99 authorization. > > > > > > > > *First example:* > > > > add a column with visib expr =E2=80=98MANAGER=E2=80=99 > > > > delete it by passing in visibility of =E2=80=98MANAGER=E2=80=99 > > > > This works and scan doesn=E2=80=99t return anything. > > > > > > > > *Second example:* > > > > add a column with visib expr =E2=80=98MANAGER=E2=80=99 > > > > delete it by not passing in any visibility. > > > > This doesn=E2=80=99t delete the column. > > > > Scan doesn=E2=80=99t return the row but RAW scan shows the column > > > > marked as deleteColumn. > > > > > > > > Now if delete is done again with visibility of =E2=80=98MANAGER=E2=80= =99, > > > > it still doesn=E2=80=99t delete it and scan returns the original colu= mn. > > > > > > > > > > > > > > > > *Example 1:* > > > > hbase(main):096:0> create 'HBT1', 'cf' > > > > > > > > hbase(main):098:0* *put 'HBT1', 'John', 'cf:a', 'CA', > > {VISIBILITY=3D>'MANAGER'}* > > > > > > > > hbase(main):099:0> *scan 'HBT1'* > > > > ROW > > COLUMN+CELL > > > > John column=3Dcf:a, timestamp=3D1446154722055, > > value=3DCA > > > > 1 row(s) in 0.0030 seconds > > > > > > > > hbase(main):100:0> *delete 'HBT1', 'John', 'cf:a', > > {VISIBILITY=3D>'MANAGER'}* > > > > 0 row(s) in 0.0030 seconds > > > > > > > > hbase(main):101:0> *scan 'HBT1'* > > > > ROW > > COLUMN+CELL > > > > 0 row(s) in 0.0030 seconds > > > > > > > > > > > > *Example 2:* > > > > hbase(main):010:0* *put 'HBT1', 'John', 'cf:a', 'CA', > > {VISIBILITY=3D>'MANAGER'}* > > > > 0 row(s) in 0.0040 seconds > > > > > > > > hbase(main):011:0> *scan 'HBT1'* > > > > ROW > > COLUMN+CELL > > > > John column=3Dcf:a, timestamp=3D1446155346473, > > value=3DCA > > > > 1 row(s) in 0.0060 seconds > > > > > > > > hbase(main):012:0> *delete 'HBT1', 'John', 'cf:a'* > > > > 0 row(s) in 0.0090 seconds > > > > > > > > hbase(main):013:0> *scan 'HBT1'* > > > > ROW > > COLUMN+CELL > > > > John column=3Dcf:a, timestamp=3D1446155346473, > > value=3DCA > > > > 1 row(s) in 0.0050 seconds > > > > > > > > hbase(main):014:0> *scan 'HBT1', {RAW =3D> true}* > > > > ROW > > COLUMN+CELL > > > > John column=3Dcf:a, timestamp=3D1446155346519, > > type=3DDeleteColumn > > > > 1 row(s) in 0.0060 seconds > > > > > > > > hbase(main):015:0> *delete 'HBT1', 'John', 'cf:a', > > {VISIBILITY=3D>'MANAGER'}* > > > > 0 row(s) in 0.0030 seconds > > > > > > > > hbase(main):016:0> *scan 'HBT1'* > > > > ROW > > COLUMN+CELL > > > > John column=3Dcf:a, timestamp=3D1446155346473, > > value=3DCA > > > > 1 row(s) in 0.0040 seconds > > > > > > > > hbase(main):017:0> *scan 'HBT1', {RAW =3D> true}* > > > > ROW > > COLUMN+CELL > > > > John column=3Dcf:a, timestamp=3D1446155346601, > > type=3DDeleteColumn > > > > 1 row(s) in 0.0060 seconds > > > --001a11403c6644926f0523893294--