You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a retry logic for API getAllChildrenPaginated() when there is deletion in the transaction children(children created by a multi transaction operation) and the new page's start minCzxidOffset shifts. Current implementation uses the last child as a flag to represent if there is offset shifting.
} while (nextPage.getMinCzxid() != ZooDefs.GetChildrenPaginated.lastPageMinCzxid);
We want to add a unit test for the code logic. As we could not simulate the read/write race condition on the server, we will need to mock the states in the zookeeper api for the uni test.
Description
There is a retry logic for API
getAllChildrenPaginated()
when there is deletion in the transaction children(children created by amulti
transaction operation) and the new page's startminCzxidOffset
shifts. Current implementation uses the last child as a flag to represent if there is offset shifting.zookeeper/zookeeper-server/src/main/java/org/apache/zookeeper/ZooKeeper.java
Lines 2899 to 2918 in 4ca8b70
We want to add a unit test for the code logic. As we could not simulate the read/write race condition on the server, we will need to mock the states in the zookeeper api for the uni test.
Related to #8
The text was updated successfully, but these errors were encountered: