cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Petrov (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-10756) Timeout failures in NativeTransportService.testConcurrentDestroys unit test
Date Wed, 13 Apr 2016 13:16:25 GMT


Alex Petrov commented on CASSANDRA-10756:

For sakes of experiment, I've changed the order (made a shutdown of {{workerGroup}} and {{eventExecutorGroup}}
before calling {{destroy}}), it seems unrelated, as there are different executors that are
being shut down. Also, there's an assert for {{allTerminated.get())}}, which confirms that
worker group and {{eventGroupExectuor}} are unrelated.

Same with {{emptyList}} replacement, since the call to {{Server::stop}} is synchronous, at
least one thread would succeed.

So it seems that it's some other group that's being shut down is causing this error. Maybe
roots are in the fact that the test times out...

> Timeout failures in NativeTransportService.testConcurrentDestroys unit test
> ---------------------------------------------------------------------------
>                 Key: CASSANDRA-10756
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Joel Knighton
>            Assignee: Alex Petrov
> History of test on trunk [here|].
> I've seen these failures across 3.0/trunk for a while. I ran the test looping locally
for a while and the timeout is fairly easy to reproduce. The timeout appears to be an indefinite
hang and not a timing issue.
> When the timeout occurs, the following stack trace is at the end of the logs for the
unit test.
> {code}
> ERROR [ForkJoinPool.commonPool-worker-1] 2015-11-22 21:30:53,635 Failed to submit a listener
notification task. Event loop shut down?
> java.util.concurrent.RejectedExecutionException: event executor terminated
> 	at io.netty.util.concurrent.SingleThreadEventExecutor.reject(
> 	at io.netty.util.concurrent.SingleThreadEventExecutor.addTask(
> 	at io.netty.util.concurrent.SingleThreadEventExecutor.execute(
> 	at io.netty.util.concurrent.DefaultPromise.execute( [netty-all-4.0.23.Final.jar:4.0.23.Final]
> 	at io.netty.util.concurrent.DefaultPromise.notifyLateListener(
> 	at io.netty.util.concurrent.DefaultPromise.addListener( [netty-all-4.0.23.Final.jar:4.0.23.Final]
> 	at
> 	at
> 	at<init>(
> 	at [netty-all-4.0.23.Final.jar:4.0.23.Final]
> 	at [netty-all-4.0.23.Final.jar:4.0.23.Final]
> 	at org.apache.cassandra.transport.Server$ConnectionTracker.closeAll(
> 	at org.apache.cassandra.transport.Server.close( [main/:na]
> 	at org.apache.cassandra.transport.Server.stop( [main/:na]
> 	at java.util.Collections$SingletonSet.forEach( ~[na:1.8.0_60]
> 	at org.apache.cassandra.service.NativeTransportService.stop(
> 	at org.apache.cassandra.service.NativeTransportService.destroy(
> 	at org.apache.cassandra.service.NativeTransportServiceTest.lambda$withService$102(
> 	at$3$1.accept( ~[na:1.8.0_60]
> 	at$RangeIntSpliterator.forEachRemaining( ~[na:1.8.0_60]
> 	at java.util.Spliterator$OfInt.forEachRemaining( ~[na:1.8.0_60]
> 	at ~[na:1.8.0_60]
> 	at ~[na:1.8.0_60]
> 	at$ReduceTask.doLeaf( ~[na:1.8.0_60]
> 	at$ReduceTask.doLeaf( ~[na:1.8.0_60]
> 	at ~[na:1.8.0_60]
> 	at java.util.concurrent.CountedCompleter.exec( ~[na:1.8.0_60]
> 	at java.util.concurrent.ForkJoinTask.doExec( ~[na:1.8.0_60]
> 	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask( ~[na:1.8.0_60]
> 	at java.util.concurrent.ForkJoinPool.runWorker( ~[na:1.8.0_60]
> 	at ~[na:1.8.0_60]
> {code}

This message was sent by Atlassian JIRA

View raw message