mirror of https://github.com/apache/nifi.git
NIFI-2478 Fixed Zk leaders path to include root.
This commit is contained in:
parent
ed5c44ba53
commit
7a7165152e
|
@ -95,7 +95,7 @@ public class CuratorLeaderElectionManager implements LeaderElectionManager {
|
|||
}
|
||||
|
||||
final String rootPath = zkConfig.getRootPath();
|
||||
final String leaderPath = (rootPath.endsWith("/") ? "" : "/") + "leaders/" + roleName;
|
||||
final String leaderPath = rootPath + (rootPath.endsWith("/") ? "" : "/") + "leaders/" + roleName;
|
||||
|
||||
try {
|
||||
PathUtils.validatePath(rootPath);
|
||||
|
|
Loading…
Reference in New Issue