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

Calling zkClient.close in zkWatch implementation blocks it indefinitely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.13.1
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: