You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "liyang (JIRA)" <ji...@apache.org> on 2017/04/29 02:01:04 UTC

[jira] [Created] (KYLIN-2578) Refactor DistributedLock

liyang created KYLIN-2578:
-----------------------------

             Summary: Refactor DistributedLock
                 Key: KYLIN-2578
                 URL: https://issues.apache.org/jira/browse/KYLIN-2578
             Project: Kylin
          Issue Type: Improvement
            Reporter: liyang


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



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)