You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Ching-Cheng Chen <cc...@evidentsoftware.com> on 2011/01/06 16:59:53 UTC

SSTable files not getting deleted

My impression is that force GC should have deleted the SSTable files no
longer valid.

I performed a nodetool compact, all went good and finished.   All column
family now only have one big live SSTable file.

Then I use jconsole to force a GC, but those old SSTable files still not
getting deleted.   I thought this should trigger a deletion for those
SSTable files maked for delete.

I'm using 0.7-rc2.

When I perform the force GC, no exception in log file.

 INFO [ScheduledTasks:1] 2011-01-06 10:43:16,786 GCInspector.java (line 133)
GC for ConcurrentMarkSweep: 456 ms, 1529612464 reclaimed leaving 114919560
used; max is 4424663040
 INFO [ScheduledTasks:1] 2011-01-06 10:48:25,580 GCInspector.java (line 133)
GC for ConcurrentMarkSweep: 505 ms, 56558064 reclaimed leaving 121900224
used; max is 4424663040
 INFO [ScheduledTasks:1] 2011-01-06 10:50:47,760 GCInspector.java (line 133)
GC for ConcurrentMarkSweep: 455 ms, 28188544 reclaimed leaving 124425408
used; max is 4424663040
 INFO [ScheduledTasks:1] 2011-01-06 10:52:57,107 GCInspector.java (line 133)
GC for ConcurrentMarkSweep: 513 ms, 27953872 reclaimed leaving 126936960
used; max is 4424663040

By the way, those old SSTable files did get removed if I restart the node.

Regards,

Chen

Re: SSTable files not getting deleted

Posted by Ching-Cheng Chen <cc...@evidentsoftware.com>.
Yes, those SSTable files has "compacted" tag.

Those with compacted tag have size 0, so disk space is not an issue.

However, the matching Filter, Index, Statistics files were not removed,
either.
So I ended up with tons of file under data directory although they not using
much space.

I'm running cassandra 0.7-rc2.

Red Hat Linux 2.6.18-194.26.1.el5

SUN JDK
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

Regards,

Chen

On Thu, Jan 6, 2011 at 12:18 PM, Robert Coli <rc...@digg.com> wrote:

> On Thu, Jan 6, 2011 at 7:59 AM, Ching-Cheng Chen
> <cc...@evidentsoftware.com> wrote:
>
> > I performed a nodetool compact, all went good and finished.   All column
> > family now only have one big live SSTable file.
> > Then I use jconsole to force a GC, but those old SSTable files still not
> > getting deleted.   I thought this should trigger a deletion for those
> > SSTable files maked for delete.
>
> Which old SSTable files, specifically?
>
> Does their name include the tag "compacted"?
>
> And what version of cassandra are you running in what environment?
>
> =Rob
>

Re: SSTable files not getting deleted

Posted by Robert Coli <rc...@digg.com>.
On Thu, Jan 6, 2011 at 7:59 AM, Ching-Cheng Chen
<cc...@evidentsoftware.com> wrote:

> I performed a nodetool compact, all went good and finished.   All column
> family now only have one big live SSTable file.
> Then I use jconsole to force a GC, but those old SSTable files still not
> getting deleted.   I thought this should trigger a deletion for those
> SSTable files maked for delete.

Which old SSTable files, specifically?

Does their name include the tag "compacted"?

And what version of cassandra are you running in what environment?

=Rob