From 68143c4d29fa94849eb541ff721f7f9c71f6d5e3 Mon Sep 17 00:00:00 2001 From: fengyubiao Date: Mon, 15 Jul 2024 16:59:21 +0800 Subject: [PATCH] address comment --- .../org/apache/pulsar/metadata/impl/AbstractMetadataStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java index 8d67ba0a1bb1be..1a5173ced911fa 100644 --- a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java +++ b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java @@ -498,7 +498,7 @@ protected void receivedSessionEvent(SessionEvent event) { isConnected = event.isConnected(); // Clear cache after session expired. - if (event == SessionEvent.SessionLost) { + if (event == SessionEvent.SessionLost || event == SessionEvent.ConnectionLost) { for (MetadataCacheImpl metadataCache : metadataCaches) { metadataCache.invalidateAll(); }