You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Arina Ielchiieva (JIRA)" <ji...@apache.org> on 2016/12/01 10:51:59 UTC

[jira] [Resolved] (DRILL-4888) putIfAbsent for ZK stores is not atomic

     [ https://issues.apache.org/jira/browse/DRILL-4888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arina Ielchiieva resolved DRILL-4888.
-------------------------------------
    Resolution: Fixed

Fixed in scope of DRILL-4726.
Merged in Apache master with commit 89f2633f612a645666de8f51dcb19c6f8044a95e

> putIfAbsent for ZK stores is not atomic
> ---------------------------------------
>
>                 Key: DRILL-4888
>                 URL: https://issues.apache.org/jira/browse/DRILL-4888
>             Project: Apache Drill
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Arina Ielchiieva
>            Assignee: Arina Ielchiieva
>             Fix For: 1.9.0
>
>
> putIfAbsent method in ZookeeperPersistentStore [1] and ZkEphemeralStore [2] is not atomic. First is checks if znode is absent and then puts data into it, but by that time someone might have created znode.
> [1] https://github.com/apache/drill/blob/master/exec/java-exec/src/main/java/org/apache/drill/exec/store/sys/store/ZookeeperPersistentStore.java#L89
> [2] https://github.com/apache/drill/blob/master/exec/java-exec/src/main/java/org/apache/drill/exec/coord/zk/ZkEphemeralStore.java#L90



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)