Reno Shen created ZOOKEEPER-4325:
------------------------------------

             Summary: IllegalArgumentException when use ZkUtil::listSubTreeBFS 
to list "/"
                 Key: ZOOKEEPER-4325
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4325
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
    Affects Versions: 3.6.2
            Reporter: Reno Shen
             Fix For: 3.6.2


[ZkUtil::listSubTreeBFS|https://github.com/apache/zookeeper/blob/branch-3.6/zookeeper-server/src/main/java/org/apache/zookeeper/ZKUtil.java]

Assume zk has these nodes: /a_test/a, /b_test/b.

When use this method to list "/", according to BFS logic, the BFS queue would 
be added node like: "//a_test", then getChildren by this path, the next 
exception occurs:
{code:java}
java.lang.IllegalArgumentException: Invalid path string "//a_test" caused by 
empty node name specified @1
{code}
 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to