Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-19365

In some Npm operations (i.e. npm dist-tag add command), Artifactory triggers new thread and leave it open after it's completion

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.8.8
    • Fix Version/s: 6.13.0
    • Component/s: NPM
    • Labels:
      None

      Description

      Artifactory Npm implementation performs some operations in a dedicated thread/s, with or without waiting for the thread completion.

      In some Npm operations (i.e. npm dist-tag add command), Artifactory triggers new thread and leave it open even after it's completion.

      The thread name will be identified as art-fixed-0

      This can be identified by taking a thread dump and searching for multiple art-fixed-0 thread names on {{WAITING }}state with the following stack:

      "art-fixed-0" #128 prio=5 os_prio=31 tid=0x00007ff6abde9000 nid=0x13903 waiting on condition [0x000070000f707000]
         java.lang.Thread.State: WAITING (parking)
              at sun.misc.Unsafe.park(Native Method)
              - parking to wait for  <0x0000000785425bf8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)
              at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
              at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2039)
              at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
              at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1074)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1134)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Activity

            People

            Assignee:
            uriahl Uriah Levy
            Reporter:
            shayb Shay Bagants
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: