Return-Path: Delivered-To: apmail-incubator-cassandra-commits-archive@minotaur.apache.org Received: (qmail 91242 invoked from network); 6 Oct 2009 17:47:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Oct 2009 17:47:57 -0000 Received: (qmail 71758 invoked by uid 500); 6 Oct 2009 17:47:57 -0000 Delivered-To: apmail-incubator-cassandra-commits-archive@incubator.apache.org Received: (qmail 71737 invoked by uid 500); 6 Oct 2009 17:47:57 -0000 Mailing-List: contact cassandra-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-commits@incubator.apache.org Received: (qmail 71727 invoked by uid 99); 6 Oct 2009 17:47:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 17:47:57 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Oct 2009 17:47:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66F9C234C056 for ; Tue, 6 Oct 2009 10:47:31 -0700 (PDT) Message-ID: <1964517814.1254851251420.JavaMail.jira@brutus> Date: Tue, 6 Oct 2009 10:47:31 -0700 (PDT) From: "Jonathan Ellis (JIRA)" To: cassandra-commits@incubator.apache.org Subject: [jira] Commented: (CASSANDRA-473) Major compaction still leaves large set of files In-Reply-To: <279681906.1254844051276.JavaMail.jira@brutus> 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-473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762702#action_12762702 ] Jonathan Ellis commented on CASSANDRA-473: ------------------------------------------ okay, so here's what is going on. there is a feature involved, and a bug :) the feature is that you will end up with multiple files if you try to major compact but don't have enough room. cassandra can't r/m the old files until the new ones are finished (in the worst case), so it will cut down the compaction set to something it knows will fit in the remaining space. the bug is that using subList in doCompaction is causing the java.util.Collections$UnmodifiableCollection.remove error, since like arrays.asList, the list objects returned by subList don't support remove(). > Major compaction still leaves large set of files > ------------------------------------------------ > > Key: CASSANDRA-473 > URL: https://issues.apache.org/jira/browse/CASSANDRA-473 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 0.5 > Reporter: Chris Goffinet > Fix For: 0.5 > > Attachments: 473.patch, system.log > > > We did a major compaction on roughly 1000-2000 files. The disk drive had a capacity of 1.6TB. The disk usage with Cassandra was 1.1TB. I saw this error, maybe this is why compaction did not finish? Attaching system.log -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.