maoling commented on a change in pull request #934: ZOOKEEPER-3301:Enforce the 
quota limit
URL: https://github.com/apache/zookeeper/pull/934#discussion_r383092193
 
 

 ##########
 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:
   Done 
   1. set UTF-8 
   2. add new constructor `public StatsTrack(byte[] stat) `

----------------------------------------------------------------
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

Reply via email to