This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new c40c7ee9fb3 [fix][metadata] Set revalidateAfterReconnection true for 
certain failures (#17664)
c40c7ee9fb3 is described below

commit c40c7ee9fb35eafea9c9923dfcf62706ea5d36bf
Author: Michael Marshall <mmarsh...@apache.org>
AuthorDate: Sun Sep 18 06:27:59 2022 -0700

    [fix][metadata] Set revalidateAfterReconnection true for certain failures 
(#17664)
---
 .../org/apache/pulsar/metadata/coordination/impl/ResourceLockImpl.java   | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/ResourceLockImpl.java
 
b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/ResourceLockImpl.java
index bc3f47d41dc..22eaccc278b 100644
--- 
a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/ResourceLockImpl.java
+++ 
b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/ResourceLockImpl.java
@@ -196,6 +196,7 @@ public class ResourceLockImpl<T> implements ResourceLock<T> 
{
                             // We failed to revalidate the lock due to 
connectivity issue
                             // Continue assuming we hold the lock, until we 
can revalidate it, either
                             // on Reconnected or SessionReestablished events.
+                            revalidateAfterReconnection = true;
                             log.warn("Failed to revalidate the lock at {}. 
Retrying later on reconnection {}", path,
                                     ex.getCause().getMessage());
                         }

Reply via email to