Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 11403 invoked from network); 14 Nov 2010 09:38:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Nov 2010 09:38:08 -0000 Received: (qmail 73061 invoked by uid 500); 14 Nov 2010 09:38:39 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 72910 invoked by uid 500); 14 Nov 2010 09:38:39 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 72901 invoked by uid 99); 14 Nov 2010 09:38:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Nov 2010 09:38:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Nov 2010 09:38:35 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oAE9cEfU010572 for ; Sun, 14 Nov 2010 09:38:14 GMT Message-ID: <32927030.67861289727494004.JavaMail.jira@thor> Date: Sun, 14 Nov 2010 04:38:14 -0500 (EST) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Updated: (CASSANDRA-1734) New subcolumn resurrect deleted subcolumns In-Reply-To: <14320064.41681289533513547.JavaMail.jira@thor> 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/CASSANDRA-1734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-1734: -------------------------------------- Attachment: 1734.txt patch to add removeDeleted call to getRangeSlices (list) as it is for getColumnFamily (get) > New subcolumn resurrect deleted subcolumns > ------------------------------------------ > > Key: CASSANDRA-1734 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1734 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.7 beta 3 > Environment: Windows7-64 > Reporter: Wenjun > Attachments: 1734.txt > > > The followings are the conversation I had with jbellis on IRC: > have a question on deletion of super column....deletion of SuperColumn works fine....but when I add any new sub-column, the 'old' sub-columns reappear..how can I tell they are tombstoned > the 'old' sub-columns still have all the data in place, including timestamp > and the timestamp is older than markDeletaAt of the super column > appoji: right. that is expected. the subcolumns won't be tombstoned, the supercolumn tombstone should supress them. > shouldn't* > appoji: but writing a new subcolumn should resurrect the others. can you submit a test case? > I am able to reproduce it with cli as followings: > 1. create column family UserGroup with column_type = 'Super' and gc_grace=5 and comparator = 'AsciiType' and subcomparator = 'BytesType' > 2. set UserGroup ['100'] ['memberList']['paul']='' > 3. del UserGroup ['100'] ['memberList'] > 4. wait for 5 seconds and "list UserGroup" does not return any data, which is correct > 5. set UserGroup ['100'] ['memberList']['andrew']='' > 6. now "list UserGroup" returns 2 sub-columns ('paul' and 'andrew') > here is server log for step 6: > DEBUG 22:40:52,378 range_slice > DEBUG 22:40:52,379 RangeSliceCommand{keyspace='Appoji', column_family='UserGroup > 1', super_column=null, predicate=SlicePredicate(slice_range:SliceRange(start:80 > 01 00 01 00 00 00 10 67 65 74 5F 72 61 6E 67 65 5F 73 6C 69 63 65 73 00 00 00 28 > 0C 00 01 0B 00 03 00 00 00 0A 55 73 65 72 47 72 6F 75 70 31 00 0C 00 02 0C 00 0 > 2 0B 00 01 00 00 00 00, finish:80 01 00 01 00 00 00 10 67 65 74 5F 72 61 6E 67 6 > 5 5F 73 6C 69 63 65 73 00 00 00 28 0C 00 01 0B 00 03 00 00 00 0A 55 73 65 72 47 > 72 6F 75 70 31 00 0C 00 02 0C 00 02 0B 00 01 00 00 00 00 0B 00 02 00 00 00 00, r > eversed:false, count:100)), range=[0,0], max_keys=100} > DEBUG 22:40:52,380 restricted single token match for query [0,0] > DEBUG 22:40:52,381 local range slice > DEBUG 22:40:52,382 collecting 0 of 100: SuperColumn(memberList -delete at 128953 > 3231194000- [616e64726577:false:0@1289533250404000,7061756c:false:0@128953321401 > 5000,]) > DEBUG 22:40:52,383 scanned DecoratedKey(9839004666223652184852086760848439587, 3 > 13030) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.