zookeeper-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [zookeeper] TisonKun commented on a change in pull request #839: ZOOKEEPER-3290: Throw detailed KeeperException when multi-op failed
Date Sun, 25 Aug 2019 02:50:18 GMT
TisonKun commented on a change in pull request #839: ZOOKEEPER-3290: Throw detailed KeeperException
when multi-op failed
URL: https://github.com/apache/zookeeper/pull/839#discussion_r317380364
 
 

 ##########
 File path: zookeeper-server/src/main/java/org/apache/zookeeper/CreateMode.java
 ##########
 @@ -135,7 +135,7 @@ public static CreateMode fromFlag(int flag) throws KeeperException {
         default:
             String errMsg = "Received an invalid flag value: " + flag + " to convert to a
CreateMode";
             LOG.error(errMsg);
-            throw new KeeperException.BadArgumentsException(errMsg);
+            throw new KeeperException.BadArgumentsException();
 
 Review comment:
   Fair enough. ZOOKEEPER-3520.
   
   It is good to contrast with how we do in async version of `multi`. It's interesting.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message