zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZOOKEEPER-645) Bug in WriteLock recipe implementation?
Date Wed, 15 Nov 2017 23:11:00 GMT

    [ https://issues.apache.org/jira/browse/ZOOKEEPER-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16254414#comment-16254414
] 

ASF GitHub Bot commented on ZOOKEEPER-645:
------------------------------------------

Github user phunt commented on the issue:

    https://github.com/apache/zookeeper/pull/413
  
    Did you guys see https://issues.apache.org/jira/browse/ZOOKEEPER-645 - it's from long
back. Not sure if it's interesting to you @javicacheiro but FYI. If someone is interested
to get that one over the line as well please speak up. thx.


> Bug in WriteLock recipe implementation?
> ---------------------------------------
>
>                 Key: ZOOKEEPER-645
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-645
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: recipes
>    Affects Versions: 3.2.2
>         Environment: 3.2.2 java 1.6.0_12
>            Reporter: Jaakko Laine
>            Assignee: Mahadev konar
>            Priority: Minor
>             Fix For: 3.6.0
>
>         Attachments: 645-fix-findPrefixInChildren.patch, ZOOKEEPER-645-compareTo.patch,
ZOOKEEPER-645.3.patch.txt
>
>
> Not sure, but there seem to be two issues in the example WriteLock:
> (1) ZNodeName is sorted according to session ID first, and then according to znode sequence
number. This might cause starvation as lower session IDs always get priority. WriteLock is
not thread-safe in the first place, so having session ID involved in compare operation does
not seem to make sense.
> (2) if findPrefixInChildren finds previous ID, it should add dir in front of the ID



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message