Return-Path: Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: (qmail 29672 invoked from network); 22 Jun 2010 14:09:23 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jun 2010 14:09:23 -0000 Received: (qmail 21414 invoked by uid 500); 22 Jun 2010 14:09:23 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 21329 invoked by uid 500); 22 Jun 2010 14:09:22 -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 21320 invoked by uid 99); 22 Jun 2010 14:09:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jun 2010 14:09:21 +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; Tue, 22 Jun 2010 14:09:19 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5ME8vl3017186 for ; Tue, 22 Jun 2010 14:08:58 GMT Message-ID: <28172063.13661277215737854.JavaMail.jira@thor> Date: Tue, 22 Jun 2010 10:08:57 -0400 (EDT) From: "Hudson (JIRA)" To: commits@cassandra.apache.org Subject: [jira] Commented: (CASSANDRA-1130) Row iteration can stomp start-of-row mark In-Reply-To: <11174788.40521274811264272.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-1130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12881208#action_12881208 ] Hudson commented on CASSANDRA-1130: ----------------------------------- Integrated in Cassandra #473 (See [http://hudson.zones.apache.org/hudson/job/Cassandra/473/]) fix race condition in SSTable*Iterator. patch by Sylvain Lebresne; reviewed by jbellis for CASSANDRA-1130 > Row iteration can stomp start-of-row mark > ----------------------------------------- > > Key: CASSANDRA-1130 > URL: https://issues.apache.org/jira/browse/CASSANDRA-1130 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.7 > Reporter: Jignesh Dhruv > Assignee: Sylvain Lebresne > Fix For: 0.7 > > Attachments: 0001-Allow-for-multiple-mark-on-a-file.patch, 0002-Unit-test-for-row-iteration.patch, cassandra_0.6-Allow_multiple_mark_on_file.diff, TestSuperColumnTTL.java, TestSuperColumnTTL.java > > > Hello, > I am trying to use TTL (timeToLive) feature in SuperColumns. > My usecase is: > - I have a SuperColumn and 3 subcolumns. > - I try to expire data after 60 seconds. > While Cassandra is up and running, I am successfully able to push and read data without any problems. Data compaction and all occurs fine. After inserting say about 100000 records, I stop Cassandra while data is still coming. > On startup Cassandra throws an exception and won't start up. (This happens 1 in every 3 times). Exception varies like: > - EOFException while reading data > - negative value encountered exception > - Heap Space Exception > Cassandra simply won't start up. > Again I get this problem only when I use TTL with SuperColumns. There are no issues with using TTL with regular Columns. > I tried to diagnose the problem and it seems to happen on startup when it sees a Column that is marked Deleted and its trying to read data. Its off by some bytes and hence all these exceptions. > Caused by: java.io.IOException: Corrupt (negative) value length encountered > at org.apache.cassandra.utils.FBUtilities.readByteArray(FBUtilities.java:317) > at org.apache.cassandra.db.ColumnSerializer.deserialize(ColumnSerializer.java:84) > at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:336) > at org.apache.cassandra.db.SuperColumnSerializer.deserialize(SuperColumn.java:285) > at org.apache.cassandra.db.filter.SSTableSliceIterator$ColumnGroupReader.getNextBlock(SSTableSliceIterator.java:235) > at org.apache.cassandra.db.filter.SSTableSliceIterator$ColumnGroupReader.pollColumn(SSTableSliceIterator.java:195) > ... 18 more > Let me know if you need more information. > Thanks, > Jignesh -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.