Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-4039

ZookeeperDistributedLock may not release lock when unlock operation was interrupted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v3.0.0-beta
    • None
    • None

    Description

      ZookeeperDistributedLock may hold the lock and not release it when the unlock operation was interrupted.

      Because the unlock operation contains two steps:
      1. peekLock: get the owner of the lock
      2. purgeLock: purge the lock if the owner of the lock is the current client.

      If the peekLock step is interrupted, the purgeLock step won't be executed. Thus the lock won't be released.

      Meanwhile, the lock operation should also consider the interrupt cases.

      Attachments

        Activity

          People

            PENG Zhengshuai PENG Zhengshuai
            PENG Zhengshuai PENG Zhengshuai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: