Skip to content

Commit 5790e3b

Browse files
mattisonchaonodece
authored andcommitted
[fix][meta] Fix close borrowed executor (#19761)
(cherry picked from commit 710cea6)
1 parent 018eb3f commit 5790e3b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pulsar-metadata/src/main/java/org/apache/pulsar/metadata/coordination/impl/LeaderElectionImpl.java

-2
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,6 @@ public synchronized CompletableFuture<Void> asyncClose() {
253253

254254
internalState = InternalState.Closed;
255255

256-
executor.shutdownNow();
257-
258256
if (leaderElectionState != LeaderElectionState.Leading) {
259257
return CompletableFuture.completedFuture(null);
260258
}

0 commit comments

Comments
 (0)