[jboss-jira] [JBoss JIRA] (WFCORE-3317) Some deployment-scanner unit tests from wf-core fail on IBM JDK intermittently
Marek Kopecký (JIRA)
issues at jboss.org
Tue Sep 26 09:18:00 EDT 2017
[ https://issues.jboss.org/browse/WFCORE-3317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marek Kopecký updated WFCORE-3317:
----------------------------------
Git Pull Request: https://github.com/wildfly/wildfly-core/pull/2845, https://github.com/jbossas/wildfly-core-eap/pull/433
> Some deployment-scanner unit tests from wf-core fail on IBM JDK intermittently
> ------------------------------------------------------------------------------
>
> Key: WFCORE-3317
> URL: https://issues.jboss.org/browse/WFCORE-3317
> Project: WildFly Core
> Issue Type: Bug
> Components: Test Suite
> Reporter: Marek Kopecký
> Assignee: Marek Kopecký
>
> *Description of problem:*
> Some deployment-scanner unit tests from wf-core fail on IBM JDK intermittently.
> This is testsuite issue only.
> Affected test cases:
> * ShutdownFileSystemDeploymentServiceUnitTestCase
> * FileSystemDeploymentServiceUnitTestCase
> Executors.newSingleThreadExecutor() method returns ExecutorService with finalize method, that shutdown thread executor. Currently ExecutorService instance is not referenced, so IBM JDK calls finalize method. It calls shutdown method and size of thread-pool is decreased to 0 before lockDone.get(...) is called.
> *How reproducible:*
> 0.6% - intermittently on IBM JDK
> *Actual results - ShutdownFileSystemDeploymentServiceUnitTestCase:*
> StackTrace:
> {noformat}
> java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask at 67503391 rejected from java.util.concurrent.ThreadPoolExecutor at ae603d77[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
> at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2058)
> at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:834)
> at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1380)
> at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
> at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:692)
> at org.jboss.as.server.deployment.scanner.ShutdownFileSystemDeploymentServiceUnitTestCase.testUncleanShutdown(ShutdownFileSystemDeploymentServiceUnitTestCase.java:156)
> {noformat}
> *Actual results - FileSystemDeploymentServiceUnitTestCase:*
> StackTrace:
> {noformat}
> java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask at 9408464a rejected from java.util.concurrent.ThreadPoolExecutor at fa7bfba[Terminated, pool size = 0, active threads = 0, queued tasks = 0, completed tasks = 0]
> at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2058)
> at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:834)
> at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1380)
> at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145)
> at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:692)
> at org.jboss.as.server.deployment.scanner.FileSystemDeploymentServiceUnitTestCase.testUncleanShutdown(FileSystemDeploymentServiceUnitTestCase.java:1755)
> {noformat}
> *Expected results:*
> No errors
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list