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

Deadlock across HA nodes on local cache locking

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Affects Version/s: 6.12.0, 6.15.0
    • Fix Version/s: 7.0.0, 6.17.0
    • Component/s: Binary Provider
    • Labels:
      None
    • Severity:
      Medium

      Description

      This issue can be reproduce with a 3-node cluster, a sample script (dl.sh) is provided by Gal to reproduce the deadlock

      1) Upload a large file of 1gb to Node-1, it will be uploaded to eventual first.

      2) While this upload is being done to S3, please stop the Node-1

      3) Make concurrent requests for this file to Node-2 & Node-3

        i) The redundancy is set to 2, each request to Node-2 & Node-3 will not find the binary in local cache and will get lock in ConcurrentReadCacheMissHandler.handleCacheMiss

       ii) A deadlock is created when the request from Node-2 is waiting for the lock on Node-3 cache, and the request from Node-3 is waiting for the lock on Node-2 cache.

        Attachments

          Issue Links

            Activity

                People

                Assignee:
                galba Gal Ben Ami
                Reporter:
                sanjeevk Sanjeev Karani (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Sync Status

                    Connection: RTFACT Sync
                    RTMID-20883 -
                    SYNCHRONIZED
                    • Last Sync Date: