[ https://issues.apache.org/jira/browse/ZOOKEEPER-1272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139355#comment-13139355 ]
Marshall McMullen commented on ZOOKEEPER-1272: ---------------------------------------------- It should throw an exception if the error code != 0, but the exception it throws must be the exception of the failing op that caused the multi-op to fail. > ZooKeeper.multi() could violate API if server misbehaves > -------------------------------------------------------- > > Key: ZOOKEEPER-1272 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1272 > Project: ZooKeeper > Issue Type: Bug > Reporter: Thomas Koch > Assignee: Thomas Koch > Priority: Minor > > The client API method Zookeeper.multi() promisses, that the KeeperException > it throws in case of one of the multi ops failing, contains a list of > individual results. > The method ZooKeeper.multiInternal() however throws a Keeperexception if the > returned response header has an error code != 0. This should actually never > happen if the server does not misbehave since the error code of a multi > response is always zero, but I managed to trigger this code path with my > refactorings. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira