[infinispan-issues] [JBoss JIRA] (ISPN-7141) LimitedExecutorTest.testConcurrencyLimit random failures

Dan Berindei (JIRA) issues at jboss.org
Wed Oct 26 10:21:00 EDT 2016


Dan Berindei created ISPN-7141:
----------------------------------

             Summary: LimitedExecutorTest.testConcurrencyLimit random failures
                 Key: ISPN-7141
                 URL: https://issues.jboss.org/browse/ISPN-7141
             Project: Infinispan
          Issue Type: Bug
          Components: Test Suite - Core
            Reporter: Dan Berindei
            Assignee: Dan Berindei
            Priority: Critical
             Fix For: 9.0.0.Beta1


The test reuses a single executor for all test methods, and it is limited to 1 thread. It can take some time between the completion of the {{CompletableFuture}} that the test waits for and the executor thread being actually releases, and that can make the next test method throw a {{RejectedExecutionException}}.

{noformat}
20:37:37,952 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.executors.LimitedExecutorTest.testConcurrencyLimit
java.util.concurrent.RejectedExecutionException: Task org.infinispan.executors.LimitedExecutor$Runner at 5bda0b48 rejected from java.util.concurrent.ThreadPoolExecutor at 34d8a229[Running, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 1]
	at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2047) ~[?:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:823) ~[?:1.8.0_101]
	at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1369) ~[?:1.8.0_101]
	at org.infinispan.executors.LimitedExecutor.tryExecute(LimitedExecutor.java:117) ~[classes/:?]
	at org.infinispan.executors.LimitedExecutor.executeInternal(LimitedExecutor.java:92) ~[classes/:?]
	at org.infinispan.executors.LimitedExecutor.execute(LimitedExecutor.java:82) ~[classes/:?]
	at org.infinispan.executors.LimitedExecutorTest.testConcurrencyLimit(LimitedExecutorTest.java:51) ~[test-classes/:?]
{noformat}




--
This message was sent by Atlassian JIRA
(v7.2.2#72004)


More information about the infinispan-issues mailing list