Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-699

Deadlock in statestore when unregistering a subscriber and building a topic update

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: Impala 1.2.1
    • Fix Version/s: Impala 1.2.2
    • Component/s: None
    • Labels:
      None

      Description

      There is a deadlock in the statestore when unregistering a subscriber and also building a topic update. This is because UnregisterSubscriber() first takes the subscribers_ lock and then takes the topics_ lock to remove all transient entries. In ProcessOneSubscriber() we take the topics_ lock and then the subscribers_ lock in GetMinSubscriberTopicVersion() to build an update to send. This can clearly lead to a deadlock.

        Attachments

          Activity

            People

            • Assignee:
              lskuff Lenni Kuff
              Reporter:
              lskuff Lenni Kuff
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: