cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <>
Subject [jira] Updated: (CASSANDRA-2061) Missing logging for some exceptions
Date Thu, 27 Jan 2011 15:36:43 GMT


Jonathan Ellis updated CASSANDRA-2061:

    Attachment: 2061.txt

As near as I can tell, an exception thrown on a scheduled task will never kill the executor,
just like in TPE.  I don't remember why the author [me] wrote that code -- probably because
it was replacing Timer and TimerTask, and an uncaught exception in a TimerTask _will_ kill
the timer.

Patch removes RetryingSTPE and replaces with DebuggableSTPE that has an afterExecute copied
from DTPE.

> Missing logging for some exceptions
> -----------------------------------
>                 Key: CASSANDRA-2061
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Stu Hood
>             Fix For: 0.7.2
>         Attachments: 2061.txt
> {quote}Since you are using ScheduledThreadPoolExecutor.schedule(), the exception was
swallowed by the FutureTask.
> You will have to perform a get() method on the ScheduledFuture, and you will get ExecutionException
if there was any exception occured in run().{quote}

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

View raw message