Why Is Message "Node does not exist" Displayed when A Large Number of Znodes Are Deleted Using the deleteall Command?
Question
When the client connects to a non-Leader instance, run the deleteall command to delete a large number of znodes, the error message "Node does not exist" is displayed, but run the stat command, the node status can be obtained.
Answer
The Leader and Follower data is not synchronized due to network problems or large data volume.
To solve this problem, connect the client to the Leader instance and delete the instance.
Specifically, check the IP address of the node where the Leader instance resides by referring to How Do I Check Which ZooKeeper Instance Is the Leader?, run the zkCli.sh -serverP address of the Leader node:2181 command to connect to the client, and run the deleteall command to delete the znodes. For details, see Using ZooKeeper from Scratch.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.