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

Benedict commented on CASSANDRA-14815:
--------------------------------------

There is a downside to the approach I've taken, which is that the threads are 
not guaranteed to have stopped by the time shutdown exits.  I've added a 
follow-up commit that reduces this window, but this is still not a guarantee.  
I think this commit is probably better to exclude, but I'll await your 
feedback.  I have a final commit that just has the test method invoke 
{{join()}} on each matching thread with a short wait parameter, so that they 
have the opportunity to stop themselves.

> SEPExecutor does not fully shut down
> ------------------------------------
>
>                 Key: CASSANDRA-14815
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-14815
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Lifecycle
>            Reporter: Alex Petrov
>            Assignee: Alex Petrov
>            Priority: Minor
>
> When trying to shut down an SEP Executor, a parked worked will still be 
> parked on:
> {code}
> sun.misc.Unsafe.park(Native Method)
> java.util.concurrent.locks.LockSupport.park(LockSupport.java:304)
> org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:88)
> io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
> java.lang.Thread.run(Thread.java:748)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to