You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by te...@apache.org on 2023/03/15 02:07:28 UTC

[pulsar] branch branch-2.11 updated: [fix][meta] Fix close borrowed executor (#19761)

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

technoboy pushed a commit to branch branch-2.11
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-2.11 by this push:
     new 0c911dd4686 [fix][meta] Fix close borrowed executor (#19761)
0c911dd4686 is described below

commit 0c911dd4686cf9d2a483e4f3f2411db574a1e177
Author: Qiang Zhao <ma...@apache.org>
AuthorDate: Tue Mar 14 16:48:21 2023 +0800

    [fix][meta] Fix close borrowed executor (#19761)
---
 .../apache/pulsar/metadata/coordination/impl/LeaderElectionImpl.java    | 2 --
 1 file changed, 2 deletions(-)

diff --git a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/LeaderElectionImpl.java b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/LeaderElectionImpl.java
index 8e1d2cd4aa7..3dd58901f6a 100644
--- a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/LeaderElectionImpl.java
+++ b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/LeaderElectionImpl.java
@@ -253,8 +253,6 @@ class LeaderElectionImpl<T> implements LeaderElection<T> {
 
         internalState = InternalState.Closed;
 
-        executor.shutdownNow();
-
         if (leaderElectionState != LeaderElectionState.Leading) {
             return CompletableFuture.completedFuture(null);
         }