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 215F310CE2 for ; Thu, 13 Jun 2013 02:41:59 +0000 (UTC) Received: (qmail 15842 invoked by uid 500); 13 Jun 2013 02:41:53 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 15769 invoked by uid 500); 13 Jun 2013 02:41: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 15760 invoked by uid 99); 13 Jun 2013 02:41:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 02:41:51 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kylelin2000@gmail.com designates 209.85.220.41 as permitted sender) Received: from [209.85.220.41] (HELO mail-pa0-f41.google.com) (209.85.220.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 02:41:46 +0000 Received: by mail-pa0-f41.google.com with SMTP id bj3so6350788pad.14 for ; Wed, 12 Jun 2013 19:41:26 -0700 (PDT) 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=ZVOFI1w8qWcdExmVE7vRsj7rOmlAF2m+fhCIegp/8oc=; b=xIgXgFW8JqasVYG/1qlB3B3QXYE6TnxVWxVQshVluju5dNJ5/6sbCtXEfJbNflOyZR Trid5ShfMtN9EmcXqNKG8uFDIaKUUP+zMb760BN4qzdekghtLCPex4UaPGxB9imCG3QD 9CbEF9UlX6Ojk19hzDukNIudPioe/IbnhygnQiLHIlQVEHwWprKYxXO3vPWrjW78dCBa HNmlMunMMk155qWgdYfxoQMIk7dfxqVoVyqE5C+ddNklEoLmKcXqSrY4FEasss/QwptH eCvGSDFR39m2qvZlLQaOMT76LCV0V2kCsNBxZ7l8kqegad/0IVaFQM+sL7j/QKkBPWum l5mw== MIME-Version: 1.0 X-Received: by 10.68.196.196 with SMTP id io4mr22764169pbc.166.1371091286752; Wed, 12 Jun 2013 19:41:26 -0700 (PDT) Received: by 10.68.38.231 with HTTP; Wed, 12 Jun 2013 19:41:26 -0700 (PDT) In-Reply-To: <5A9A57920BD5514FA7E38922FBC875D9257B2BF4@EX-MBOX1.xiaomi.net> References: <5A9A57920BD5514FA7E38922FBC875D9257B2BF4@EX-MBOX1.xiaomi.net> Date: Thu, 13 Jun 2013 10:41:26 +0800 Message-ID: Subject: =?Big5?Q?Re=3A_=B5=AA=CE=60=3A_Scanning_not_show_the_correct_value_of_l?= =?Big5?Q?atest_version?= From: Kyle Lin To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=e89a8ff1bfb41a04c804df0011e9 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff1bfb41a04c804df0011e9 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Hello Hong Hua I've do some experiments and really got the rule of deletion. Thanks for your explanation. 2013/6/12 =B7=EB=BA=EA=BB=AA > hi, Kyle > > This is NOT a bug. There are three types of delete: Delete, DeleteColumn, > DeleteFamily; Delete is actually DeleteCell which can only mask(delete) a > cell with exactly the SAME timestamp, in your below case, "* Row1 > column=3Dcf:c2, timestamp=3D1370935373545, type=3DDe= lete" is > a Delete (DeleteCell) so it can only mask(delete) " Row1 column=3Dcf:c2= , > timestamp=3D1370935373545, value=3Dkk" since they have the same timestamp= s, but > can't mask(delete) "Row1 column=3Dcf:c2, timestamp=3D1370935357741, valu= e=3Dh > *" since they have different timestamps > > DeleteColumn can do what you expect: it can mask(delete) cells under the > column with timestamps less or equal to the timestamp of the DeleteColumn > > --Honghua > > ________________________________________ > =B7=A2=BC=FE=C8=CB: Kyle Lin [kylelin2000@gmail.com] > =B7=A2=CB=CD=CA=B1=BC=E4: 2013=C4=EA6=D4=C211=C8=D5 16:58 > =CA=D5=BC=FE=C8=CB: user@hbase.apache.org > =D6=F7=CC=E2: Scanning not show the correct value of latest version > > Hey Guys > > After I modifying a cell many times with delete action, The result of > scan is not correct. > > I Expect the value of "Row1 cf:c2" is null because I've delete the > cell(The line with blue color below). But I actually got "h"(The line wit= h > green color below). > > Is this a hbase bug? Or my operating fault? > > hbase(main):007:0> scan 'table42', {RAW =3D> true, VERSIONS =3D> 3} > ROW > COLUMN+CELL > > Row1 column=3Dcf:c1, timestamp=3D13709353= 57679, > value=3De > * Row1 column=3Dcf:c2, > timestamp=3D1370935373545, type=3DDelete > > Row1 column=3Dcf:c2, timestamp=3D13709353= 73545, > value=3Dkk > Row1 column=3Dcf:c2, timestamp=3D13709353= 57741, > value=3Dh * > Row2 column=3Dcf:c1, timestamp=3D13709353= 57804, > value=3Dp > Row2 column=3Dcf:c2, timestamp=3D13709353= 80939, > value=3Dpp > Row2 column=3Dcf:c2, timestamp=3D13709353= 73582, > value=3Djj > Row2 column=3Dcf:c2, timestamp=3D13709353= 57774, > value=3Dd > 2 row(s) in 0.0220 seconds > > hbase(main):008:0> scan 'table42' > ROW > COLUMN+CELL > > Row1 column=3Dcf:c1, timestamp=3D13709353= 57679, > value=3De > * Row1 column=3Dcf:c2, > timestamp=3D1370935357741, value=3Dh * > > Row2 column=3Dcf:c1, timestamp=3D13709353= 57804, > value=3Dp > Row2 column=3Dcf:c2, timestamp=3D13709353= 80939, > value=3Dpp > 2 row(s) in 0.0200 seconds > > > *P.S. My HBase Version is 0.94.6* > > > Kyle > --e89a8ff1bfb41a04c804df0011e9--