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

Potential deadlock if job state changes as graph finishes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4.8
    • Component/s: Thor
    • Labels:
      None

      Description

      The pause handler in Thor which utilizes a workunit watcher can deadlock, if it is notified at the same time it is stopping.
      In which case the subscription layer, is withing a notify and Thor's handler is within an attempt to unsubscribe, but the notify cannot proceed as the handler requires a critical section that the stop() method where the unsubscribe is happening has.

      Avoid by detaching the workunit watcher and releasing the crit before unsubscribe is called.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: