You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/02/09 05:14:06 UTC

[GitHub] [pulsar] michaeljmarshall commented on pull request #14177: AbstractMetadataStore: invalidate childrenCache correctly when node created

michaeljmarshall commented on pull request #14177:
URL: https://github.com/apache/pulsar/pull/14177#issuecomment-1033359248


   > > After caching the miss, broker 2 only logs two ZK events:
   > 
   > This is interesting that broker2 does not receive the event `NodeCreated path:/managed-ledgers/test/a/persistent/a`. I think this is the root cause. If it does receive this event, the `childrenCache` would be properly invalidated, right?
   
   @Jason918 - you're correct, broker 2 does not receive this notification. If I understand correctly, it doesn't get that notification because it isn't watching that node. It is watching `/managed-ledgers/test/a/persistent` because the `internalGetList` method triggers the "exists" watch when it also creates the cached value for `/managed-ledgers/test/a/persistent`.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org