You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Arina Ielchiieva (JIRA)" <ji...@apache.org> on 2016/09/13 17:30:20 UTC
[jira] [Created] (DRILL-4888) putIfAbsent for ZK stores is not
atomic
Arina Ielchiieva created DRILL-4888:
---------------------------------------
Summary: 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)