Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1365

Calling zkClient.close in zkWatch implementation blocks it indefinitely

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.1
    • Component/s: None
    • Labels:
      None

      Description

      We discovered that ZkClient.close blocks indefinitely if it’s invoked in ZkListener implementation directly.

      ZkClient.close acquires eventLock internally before trying to shutdown. Calling it in ZkListener(which holds this eventLock before invoking listeners) implementation causes zkClient.close to block indefinitely.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                spvenkat Shanthoosh Venkataraman
                Reporter:
                spvenkat Shanthoosh Venkataraman
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: