Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7141

LimitedExecutorTest.testConcurrencyLimit random failures

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

      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@5bda0b48 rejected from java.util.concurrent.ThreadPoolExecutor@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/:?]
      

              dberinde@redhat.com Dan Berindei (Inactive)
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: