NIFI-2478 Fixed Zk leaders path to include root.

This commit is contained in:
Koji Kawamura 2016-08-04 17:16:21 +09:00 committed by Mark Payne
parent ed5c44ba53
commit 7a7165152e
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ public class CuratorLeaderElectionManager implements LeaderElectionManager {
} }
final String rootPath = zkConfig.getRootPath(); final String rootPath = zkConfig.getRootPath();
final String leaderPath = (rootPath.endsWith("/") ? "" : "/") + "leaders/" + roleName; final String leaderPath = rootPath + (rootPath.endsWith("/") ? "" : "/") + "leaders/" + roleName;
try { try {
PathUtils.validatePath(rootPath); PathUtils.validatePath(rootPath);