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

Refactor DistributedLock

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v2.1.0
    • None
    • None

    Description

      The current DistributedLock could use some improvement:

      • A lockClient is unnecessarily required.
      • The watchPath is actually an on-unlock listener and the current name failed to make it clear.
      • Could add a blocking version of lockPath and that will ease use cases like KYLIN-2557 and GlobalDictionaryBuilder.lock()
      • Should add more javadoc on the interface

      Attachments

        Issue Links

          Activity

            People

              liyang.gmt8@gmail.com liyang
              liyang.gmt8@gmail.com liyang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: