[ https://issues.apache.org/jira/browse/HADOOP-14543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16056994#comment-16056994 ]
Brahma Reddy Battula commented on HADOOP-14543: ----------------------------------------------- [~arpitagarwal] and [~hanishakoneru] thanks for taking a look. Please see following example {noformat} [zk: host-110:24002,host-155:24002,host-243:24002(CONNECTED) 1] create /testAcl Created /testAcl [zk: host-110:24002,host-155:24002,host-243:24002(CONNECTED) 2] stat /testAcl cZxid = 0xc00008c7c ctime = Wed Jun 21 12:49:38 CST 2017 mZxid = 0xc00008c7c mtime = Wed Jun 21 12:49:38 CST 2017 pZxid = 0xc00008c7c cversion = 0 dataVersion = 0 aclVersion = 0 ephemeralOwner = 0x0 dataLength = 0 numChildren = 0 [zk: host-10-110:24002,host-155:24002,host-243:24002(CONNECTED) 3] setAcl -v 0 /testAcl "world:anyone:cdwra" [zk: host-110:24002,host-155:24002,host-243:24002(CONNECTED) 4] stat /testAcl cZxid = 0xc00008c7c ctime = Wed Jun 21 12:49:38 CST 2017 mZxid = 0xc00008c7c mtime = Wed Jun 21 12:49:38 CST 2017 pZxid = 0xc00008c7c cversion = 0 dataVersion = 0 aclVersion = 1 ephemeralOwner = 0x0 dataLength = 0 numChildren = 0 [zk: host-110:24002,host-155:24002,host-243:24002(CONNECTED) 5] setAcl -v 0 /testAcl "world:anyone:cdwra" version No is not valid : /testAcl {noformat} {{SetAcl}} will be success when it's both version number's correct(when we pass the version) and after setting the ACL, it will increment the {{aclversion}} so next time it will fail. Please correct me if I am wrong. > Should use getAversion() while setting the zkacl > ------------------------------------------------ > > Key: HADOOP-14543 > URL: https://issues.apache.org/jira/browse/HADOOP-14543 > Project: Hadoop Common > Issue Type: Bug > Reporter: Brahma Reddy Battula > Assignee: Brahma Reddy Battula > Attachments: HADOOP-14543.patch > > > while setting the zkacl we used {color:red}{{getVersion()}}{color} which is > dataVersion,Ideally we should use {{{color:#14892c}getAversion{color}()}}. If > there is any acl changes( i.e relam change/..) ,we set the ACL with > dataversion which will cause {color:#d04437}BADVersion {color}and > {color:#d04437}*process will not start*{color}. See > [here|https://issues.apache.org/jira/browse/HDFS-11403?focusedCommentId=16051804&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-16051804] > {{zkClient.setACL(path, zkAcl, stat.getVersion());}} -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org