merlimat commented on code in PR #23018:
URL: https://github.com/apache/pulsar/pull/23018#discussion_r1675502556


##########
pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java:
##########
@@ -496,6 +496,17 @@ public void registerSessionListener(Consumer<SessionEvent> 
listener) {
 
     protected void receivedSessionEvent(SessionEvent event) {
         isConnected = event.isConnected();
+
+        // Clear cache after session expired.

Review Comment:
   > Even though the session is re-established, it may lose some notifications, 
so clearing the cache is better.
   
   Yes, I was just thinking to do the clearing, though at the time of 
reconnection, not when the session has expired.



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