Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25664

Fix TestDocumentImport.fourStepsImportFileBlob hangs

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.3-SNAPSHOT
    • Fix Version/s: 10.3
    • Component/s: Streams

      Description

      Seen 3 times in a row on ovh03

      The Thread Nuxeo-ConsumerPool-00 is waiting for task execution but there is no thread Nuxeo-Consumer in the stack trace.

      The last trace is:

      11:24:06 11:24:06,831 [Nuxeo-ConsumerPool-00] WARN  [AbstractCallablePool] Start Nuxeo-Consumer Pool on 2 thread(s).
      
      "Nuxeo-ConsumerPool-00" #90 prio=5 os_prio=0 tid=0x00007fcdd1eeb800 nid=0x1774f waiting on condition [0x00007fcd044da000]
         java.lang.Thread.State: WAITING (parking)
      	at sun.misc.Unsafe.park(Native Method)
      	- parking to wait for  <0x00000000fae739a0> (a java.util.concurrent.CompletableFuture$Signaller)
      	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      	at java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1693)
      	at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3323)
      	at java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1729)
      	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
      	at org.nuxeo.lib.stream.pattern.consumer.internals.AbstractCallablePool.runPool(AbstractCallablePool.java:118)
      	at org.nuxeo.lib.stream.pattern.consumer.internals.AbstractCallablePool.lambda$start$0(AbstractCallablePool.java:74)
      	at org.nuxeo.lib.stream.pattern.consumer.internals.AbstractCallablePool$$Lambda$164/1047000562.get(Unknown Source)
      	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      
      "main" #1 prio=5 os_prio=0 tid=0x00007fcdd000a000 nid=0x176de waiting on condition [0x00007fcdd7932000]
         java.lang.Thread.State: WAITING (parking)
      	at sun.misc.Unsafe.park(Native Method)
      	- parking to wait for  <0x00000000faf13ba0> (a java.util.concurrent.CompletableFuture$Signaller)
      	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      	at java.util.concurrent.CompletableFuture$Signaller.block(CompletableFuture.java:1693)
      	at java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3323)
      	at java.util.concurrent.CompletableFuture.waitingGet(CompletableFuture.java:1729)
      	at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
      	at org.nuxeo.importer.stream.tests.importer.TestDocumentImport.fourStepsImportFileBlob(TestDocumentImport.java:191)
      

      Possibly remove the threadpool.shutdown:
      https://github.com/nuxeo/nuxeo-platform-importer/blob/master/nuxeo-importer-stream/src/main/java/org/nuxeo/lib/stream/pattern/consumer/internals/AbstractCallablePool.java#L112

      In case the asynSupply is done after the shutdown in some rare race condition due to high slave load.

      Another stuf is to update the JVM (Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h