cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <>
Subject [jira] Commented: (CASSANDRA-1458) SSTable cleanup killed by IllegalStateException
Date Thu, 02 Sep 2010 22:50:33 GMT


Jonathan Ellis commented on CASSANDRA-1458:

I suspect retrying the delete is simply bogus -- if there is a race condition that would make
the delete fail, we need to fix that; I can't think of another reason delete would succeed
later after failing initially.

btw, are you running Windows?

> SSTable cleanup killed by IllegalStateException
> -----------------------------------------------
>                 Key: CASSANDRA-1458
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.7 beta 1
>         Environment: trunk from 2010-08-31
>            Reporter: Christopher Gist
>            Priority: Minor
>             Fix For: 0.7 beta 2
> Compacted SSTables were not being deleted even after a forced GC. The following stack
traces were observed:
> ERROR [SSTABLE-CLEANUP-TIMER] 2010-09-01 15:54:07,254 (line 85)
Uncaught exception in thread Thread[SSTABLE-CLEANUP-TIMER,5,main]
> java.lang.IllegalStateException: Task already scheduled or cancelled
>         at java.util.Timer.sched(
>         at java.util.Timer.schedule(
>         at$
>         at java.util.TimerThread.mainLoop(
>         at
> ERROR [SSTABLE-DELETER] 2010-09-01 16:20:22,587 (line 85) Uncaught
exception in thread Thread[SSTABLE-DELETER,5,main]
> java.lang.IllegalStateException: Timer already cancelled.
>         at java.util.Timer.sched(
>         at java.util.Timer.schedule(
>         at
>         at$1$
>         at
> If the SSTableDeletingReference$CleanupTask cannot delete a file, it reschedules itself
for later. TimerTasks (which CleanupTask subclasses) are intended to be scheduled only once
and will cause an IllegalStateException in the timer when it tries to schedule itself again.
The exception causes timer to effectively cancel itself and the next attempt to schedule a
task will cause an IllegalStateException in the SSTABLE-DELETER.
> It appears this could be fixed by scheduling a new CleanupTask instead of the same one
that failed (

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message