maoling commented on a change in pull request #934: ZOOKEEPER-3301:Enforce the
quota limit
URL: https://github.com/apache/zookeeper/pull/934#discussion_r383096131
##########
File path:
zookeeper-server/src/main/java/org/apache/zookeeper/cli/DelQuotaCommand.java
##########
@@ -109,17 +123,11 @@ public static boolean delQuota(ZooKeeper zk, String path,
} catch (IllegalArgumentException ex) {
throw new MalformedPathException(ex.getMessage());
} catch (KeeperException.NoNodeException ne) {
- System.err.println("quota does not exist for " + path);
- return true;
+ throw new KeeperException.NoNodeException(ne.getMessage());
}
StatsTrack strack = new StatsTrack(new String(data));
Review comment:
Actually, the content of quota znode is generated by server, it only
contains character, figure. so no garbled codes?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services