Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40FC1968F for ; Thu, 1 Mar 2012 12:08:54 +0000 (UTC) Received: (qmail 4400 invoked by uid 500); 1 Mar 2012 12:08:51 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 4374 invoked by uid 500); 1 Mar 2012 12:08:51 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 4364 invoked by uid 99); 1 Mar 2012 12:08:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 12:08:51 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sylvain@datastax.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-tul01m020-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2012 12:08:44 +0000 Received: by obbeh20 with SMTP id eh20so785380obb.31 for ; Thu, 01 Mar 2012 04:08:23 -0800 (PST) Received-SPF: pass (google.com: domain of sylvain@datastax.com designates 10.60.7.102 as permitted sender) client-ip=10.60.7.102; Authentication-Results: mr.google.com; spf=pass (google.com: domain of sylvain@datastax.com designates 10.60.7.102 as permitted sender) smtp.mail=sylvain@datastax.com Received: from mr.google.com ([10.60.7.102]) by 10.60.7.102 with SMTP id i6mr1839884oea.9.1330603703036 (num_hops = 1); Thu, 01 Mar 2012 04:08:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.7.102 with SMTP id i6mr1613112oea.9.1330603702965; Thu, 01 Mar 2012 04:08:22 -0800 (PST) Received: by 10.60.10.202 with HTTP; Thu, 1 Mar 2012 04:08:22 -0800 (PST) In-Reply-To: References: Date: Thu, 1 Mar 2012 13:08:22 +0100 Message-ID: Subject: Re: Huge amount of empty files in data directory. From: Sylvain Lebresne To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQkeQpnaxllvsvP9NXr5KPgR43fPTTPfMN5mkepTt8Q2Y4ciKlrDoAfGogvG5p0ZhChUBt8a X-Virus-Checked: Checked by ClamAV on apache.org It's a bug, namely: https://issues.apache.org/jira/browse/CASSANDRA-3616 You'd want to upgrade. -- Sylvain On Thu, Mar 1, 2012 at 1:01 PM, Henrik Schr=F6der wrote= : > Hi, > > We're running Cassandra 1.0.6 on Windows, and noticed that the amount of > files in the datadirectory just keeps growing. We have about 60GB of data > per node, we do a major compaction about once a week, but after compactio= n > there's a lot of 0-byte temp files and old files that are kept for some > reason. After 50 days of uptime there was around 50000 files in each > datadirectory, but when we restarted a server it deleted all the unnecess= ary > files and it shrunk down to about 200 files. > > We're running without compression, and with the regular compaction strate= gy, > not leveldb. I don't remember seeing this behaviour in older versions of > Cassandra, shouldn't it delete temp files while running? Is it possible t= o > force it to delete temp files while running? Is this fixed in a later > version? Or do we have to periodically restart servers to clean up the > datadirectories? > > > /Henrik Schr=F6der