Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-12534

Deleting a logical file needs to timeout, pause and retry to avoid potential deadlock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.12
    • Component/s: DFS
    • Labels:
      None

      Description

      The way that CDistributedFileDirectory::removeEntry is implemented (as called by e.g. fileservices and esp), means that >=2 callers can lock the file for read and then try to lock for write with an infinite timeout, with the result that it deadlocks barring anyone else from gaining an exclusive lock too of course.

      It should use a timeout and pause and retry to it lets others through.

        Attachments

          Activity

            People

            • Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: