This is an automated email from the ASF dual-hosted git repository.
zixuan pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/branch-2.10 by this push:
new 5790e3bd8df [fix][meta] Fix close borrowed executor (#19761)
5790e3bd8df is described below
commit 5790e3bd8dfe311b62d27e3e766b05050d827fe1
Author: Qiang Zhao <[email protected]>
AuthorDate: Tue Mar 14 16:48:21 2023 +0800
[fix][meta] Fix close borrowed executor (#19761)
(cherry picked from commit 710cea6f6fa2ed11ac67280b000aaa067a767ea0)
---
.../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);
}