YARN-11162. Set the zk acl for nodes created by ZKConfigurationStore. (#4350)

This commit is contained in:
Owen O'Malley 2022-05-23 22:07:19 -07:00 committed by GitHub
parent 5ab747222b
commit f390edaec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ public List<LogMutation> getConfirmedConfHistory(long fromId) {
private boolean createNewZkPath(String path) throws Exception { private boolean createNewZkPath(String path) throws Exception {
if (!zkManager.exists(path)) { if (!zkManager.exists(path)) {
try { try {
zkManager.create(path); zkManager.create(path, zkAcl);
} catch(NodeExistsException e) { } catch(NodeExistsException e) {
LOG.warn(NODEEXISTS_MSG, e); LOG.warn(NODEEXISTS_MSG, e);
return false; return false;