szepet opened a new pull request #929: ZOOKEEPER-3361: Add multi version of 
getChildren request
URL: https://github.com/apache/zookeeper/pull/929
 
 
   I have checked whether the `getChildren` query fits into a multi operation 
based on the issue 
[ZOOKEEPER-1407](https://issues.apache.org/jira/browse/ZOOKEEPER-1407). (Note: 
haven't checked `getData`) It was possible to make it work but it raises some 
questions about the implementation: 
   The main similarity between the operations supported by multi that they are 
transitions which change the state of the zookeeper server and this fact is 
heavily used by the implementation. However, `getChildren` is a read-only query 
so somehow we need to find a workaround to that. What this patch introduces 
that we create a non-state-changing transaction for the getChildren operation 
only when used in a multi operation. This adds a bit antisymmetric workflow for 
the `getChildren` operation, however, this way we can ensure that the original 
queries stay efficient and the workflow for processing a multi operation is 
preserved.
   Note: this patch does not support adding watchers to the children. It 
requires some update mainly on the client side but it can be added as a 
follow-up patch.

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