Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 141CD10027 for ; Sun, 2 Mar 2014 02:20:22 +0000 (UTC) Received: (qmail 70829 invoked by uid 500); 2 Mar 2014 02:20:20 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 70734 invoked by uid 500); 2 Mar 2014 02:20:19 -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 70724 invoked by uid 99); 2 Mar 2014 02:20:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2014 02:20:19 +0000 Date: Sun, 2 Mar 2014 02:20:19 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-6791) CompressedSequentialWriter can write zero-length segments during scrub MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jonathan Ellis created CASSANDRA-6791: ----------------------------------------- Summary: CompressedSequentialWriter can write zero-length segments during scrub Key: CASSANDRA-6791 URL: https://issues.apache.org/jira/browse/CASSANDRA-6791 Project: Cassandra Issue Type: Bug Components: Core Reporter: Jonathan Ellis Assignee: Marcus Eriksson Priority: Minor Fix For: 1.2.16, 2.0.6 This results in errors like this: {noformat} java.lang.IllegalArgumentException at java.nio.Buffer.limit(Buffer.java:267) at org.apache.cassandra.io.compress.CompressedRandomAccessReader.decompressChunk(CompressedRandomAccessReader.java:108) at org.apache.cassandra.io.compress.CompressedRandomAccessReader.reBuffer(CompressedRandomAccessReader.java:87) at org.apache.cassandra.io.util.RandomAccessReader.seek(RandomAccessReader.java:280) {noformat} (Because a zero-length chunk actually turns into a length of -4 in the {{compressed.limit(chunk.length)}} call, since no checksum is written either.) I thought this would be from two bad rows in a row, but it's not; the source file that resulted in scrub creating this, did not have any of those. (But it does have several instances of bad-good-bad, i.e. separated by exactly one row, that is not large enough to force a new compressed chunk.) -- This message was sent by Atlassian JIRA (v6.1.5#6160)