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 BADD8C4DA for ; Thu, 3 May 2012 22:53:12 +0000 (UTC) Received: (qmail 15711 invoked by uid 500); 3 May 2012 22:53:12 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 15685 invoked by uid 500); 3 May 2012 22:53:12 -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 15677 invoked by uid 99); 3 May 2012 22:53:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 22:53:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 22:53:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7FCA942E5B3 for ; Thu, 3 May 2012 22:52:48 +0000 (UTC) Date: Thu, 3 May 2012 22:52:48 +0000 (UTC) From: "Pavel Yaskevich (JIRA)" To: commits@cassandra.apache.org Message-ID: <805888880.24408.1336085568524.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1843309709.6850.1330598399386.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CASSANDRA-3985) Ensure a directory is selected for Compaction MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-3985?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267911#comment-13267911 ] Pavel Yaskevich commented on CASSANDRA-3985: -------------------------------------------- +1, right now we won't try to return the directory with the biggest empty space and would abort compaction if there is no sufficient space left. > Ensure a directory is selected for Compaction > --------------------------------------------- > > Key: CASSANDRA-3985 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3985 > Project: Cassandra > Issue Type: Bug > Components: Core > Affects Versions: 1.0.7 > Reporter: Aaron Morton > Assignee: Aaron Morton > Priority: Minor > Fix For: 1.0.9 > > Attachments: 3985-2.txt, cassandra-1.0-3985.txt > > > From http://www.mail-archive.com/user@cassandra.apache.org/msg20757.html > CompactionTask.execute() checks if there is a valid compactionFileLocation only if partialCompactionsAcceptable() . upgradesstables results in a CompactionTask with userdefined set, so the valid location check is not performed. > The result is a NPE, partial stack > {code:java} > $ nodetool -h localhost upgradesstables > Error occured while upgrading the sstables for keyspace MyKeySpace > java.util.concurrent.ExecutionException: java.lang.NullPointerException > at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) > at java.util.concurrent.FutureTask.get(FutureTask.java:83) > at org.apache.cassandra.db.compaction.CompactionManager.performAllSSTableOperation(CompactionManager.java:203) > at org.apache.cassandra.db.compaction.CompactionManager.performSSTableRewrite(CompactionManager.java:219) > at org.apache.cassandra.db.ColumnFamilyStore.sstablesRewrite(ColumnFamilyStore.java:995) > at org.apache.cassandra.service.StorageService.upgradeSSTables(StorageService.java:1648) > > Caused by: java.lang.NullPointerException > at java.io.File.(File.java:222) > at org.apache.cassandra.db.ColumnFamilyStore.getTempSSTablePath(ColumnFamilyStore.java:641) > at org.apache.cassandra.db.ColumnFamilyStore.getTempSSTablePath(ColumnFamilyStore.java:652) > at org.apache.cassandra.db.ColumnFamilyStore.createCompactionWriter(ColumnFamilyStore.java:1888) > at org.apache.cassandra.db.compaction.CompactionTask.execute(CompactionTask.java:151) > at org.apache.cassandra.db.compaction.CompactionManager$4.perform(CompactionManager.java:229) > at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:182) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > {code} > (night time here, will fix tomorrow, anyone else feel free to fix it.) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira