lhotari commented on code in PR #24665:
URL: https://github.com/apache/pulsar/pull/24665#discussion_r2300009037


##########
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/bookkeeper/AbstractHierarchicalLedgerManager.java:
##########
@@ -68,7 +68,8 @@ void asyncProcessLevelNodes(
             final AsyncCallback.VoidCallback finalCb, final Object context,
             final int successRc, final int failureRc) {
 
-        store.getChildren(path)
+        store.sync(path)
+                .thenCompose(__ -> store.getChildren(path))

Review Comment:
   I don't think that this solves the issue. The reason is that 
`store.getChildren` will use the cache. The cache is updated asynchronously 
based on notifications so there's still a chance that the value isn't 
consistent.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to