Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-13258

Some deployment-scanner unit tests from wf-core fail on IBM JDK intermittently

XMLWordPrintable

      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. Finalize method 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:

      java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@67503391 rejected from java.util.concurrent.ThreadPoolExecutor@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)
      

      Actual results - FileSystemDeploymentServiceUnitTestCase:
      StackTrace:

      java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.FutureTask@9408464a rejected from java.util.concurrent.ThreadPoolExecutor@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)
      

      Expected results:
      No errors

              mkopecky@redhat.com Marek Kopecky
              mkopecky@redhat.com Marek Kopecky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: