{"action":"created","issue":{"url":"https://api.github.com/repos/davidledwards/zookeeper/issues/19","labels_url":"https://api.github.com/repos/davidledwards/zookeeper/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/davidledwards/zookeeper/issues/19/comments","events_url":"https://api.github.com/repos/davidledwards/zookeeper/issues/19/events","html_url":"https://github.com/davidledwards/zookeeper/issues/19","id":75711690,"number":19,"title":"Could `cd` to a non-exist node","user":{"login":"gengmao","id":42412,"avatar_url":"https://avatars.githubusercontent.com/u/42412?v=3","gravatar_id":"","url":"https://api.github.com/users/gengmao","html_url":"https://github.com/gengmao","followers_url":"https://api.github.com/users/gengmao/followers","following_url":"https://api.github.com/users/gengmao/following{/other_user}","gists_url":"https://api.github.com/users/gengmao/gists{/gist_id}","starred_url":"https://api.github.com/users/gengmao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gengmao/subscriptions","organizations_url":"https://api.github.com/users/gengmao/orgs","repos_url":"https://api.github.com/users/gengmao/repos","events_url":"https://api.github.com/users/gengmao/events{/privacy}","received_events_url":"https://api.github.com/users/gengmao/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-12T19:32:09Z","updated_at":"2015-05-14T04:36:42Z","closed_at":"2015-05-14T04:36:42Z","body":"```\r\nzk> cd zookeeper/quota/fake\r\nzk> pwd\r\n/zookeeper/quota/fake\r\nzk> ls\r\n/zookeeper/quota/fake: no such node\r\n```"},"comment":{"url":"https://api.github.com/repos/davidledwards/zookeeper/issues/comments/101906687","html_url":"https://github.com/davidledwards/zookeeper/issues/19#issuecomment-101906687","issue_url":"https://api.github.com/repos/davidledwards/zookeeper/issues/19","id":101906687,"user":{"login":"davidledwards","id":294687,"avatar_url":"https://avatars.githubusercontent.com/u/294687?v=3","gravatar_id":"","url":"https://api.github.com/users/davidledwards","html_url":"https://github.com/davidledwards","followers_url":"https://api.github.com/users/davidledwards/followers","following_url":"https://api.github.com/users/davidledwards/following{/other_user}","gists_url":"https://api.github.com/users/davidledwards/gists{/gist_id}","starred_url":"https://api.github.com/users/davidledwards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidledwards/subscriptions","organizations_url":"https://api.github.com/users/davidledwards/orgs","repos_url":"https://api.github.com/users/davidledwards/repos","events_url":"https://api.github.com/users/davidledwards/events{/privacy}","received_events_url":"https://api.github.com/users/davidledwards/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T04:36:42Z","updated_at":"2015-05-14T04:36:42Z","body":"Correct observation. All commands would fail if the underlying node is not present. However, if you were to use `mk -r child`, then all intervening nodes would be created as a side effect.\r\n\r\nAt this point, I am a bit reluctant to make a behavioral change, so will close the issue.\r\n\r\nBy the way, I typically use the TAB key to autocomplete sub-nodes, which obviously must query ZooKeeper for the candidate list. In a sense, TAB is sort of functioning like a safe version of `cd` since it's only presenting to the user what it knows to be sub-nodes. Of course, the state of those sub-nodes could change at any time, thus leaving the user in precisely the same scenario.\r\n"}}