-
Notifications
You must be signed in to change notification settings - Fork 7.3k
ZOOKEEPER-3414 sync api throws NoNodeException when path is non-existent #1187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
zookeeper-server/src/main/java/org/apache/zookeeper/cli/SyncCommand.java
Show resolved
Hide resolved
|
Refer to this link for build results (access rights to CI server needed): |
|
Refer to this link for build results (access rights to CI server needed): |
zookeeper-server/src/main/java/org/apache/zookeeper/cli/SyncCommand.java
Show resolved
Hide resolved
HorizonNet
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some NITs
zookeeper-server/src/test/java/org/apache/zookeeper/ZooKeeperTest.java
Outdated
Show resolved
Hide resolved
zookeeper-server/src/test/java/org/apache/zookeeper/ZooKeeperTest.java
Outdated
Show resolved
Hide resolved
zookeeper-server/src/test/java/org/apache/zookeeper/ZooKeeperTest.java
Outdated
Show resolved
Hide resolved
|
@ravowlga123 Issue has been reported my @maoling . |
|
Hi @anmolnar if changes are not sufficient then I will look into zookeeper-server. Also would appreciate feedback from @maoling regarding this. |
|
|
Hi @maoling Thank You for the detailed explanation. I really appreciate it. I will update the changes shortly as per your explanation. |
As per ticket ZOOKEEPER-3414 while executing sync cmd NoNodeException should be thrown when path doesn't exist. To implement this I have used CliWrapperException and KeeperException.NoNodeException in the else condition of exec() present in SyncCommand.java
Please do let me know if the changes made make sense or if I have missed something.