[ 
https://issues.apache.org/jira/browse/CASSANDRA-6788?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13937776#comment-13937776
 ] 

Christian Rolf commented on CASSANDRA-6788:
-------------------------------------------

Having read through the (somewhat horrendous) code of 
java.util.concurrent.ThreadPoolExecutor, I agree whole-heartedly with your 
version. It's the only way to be completely safe from the race; the contract 
for afterExecute simply isn't clear enough to rely on.
I see I put myself as the assignee, what do I need to do to subtmit the patch?

> Race condition silently kills thrift server
> -------------------------------------------
>
>                 Key: CASSANDRA-6788
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6788
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Christian Rolf
>            Assignee: Christian Rolf
>         Attachments: 6788-v2.txt, 6788-v3.txt, 6793-v3-rebased.txt, 
> race_patch.diff
>
>
> There's a race condition in CustomTThreadPoolServer that can cause the thrift 
> server to silently stop listening for connections. 
> It happens when the executor service throws a RejectedExecutionException, 
> which is not caught.
>  
> Silent in the sense that OpsCenter doesn't notice any problem since JMX is 
> still running fine.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to