Skip to content

Commit

Permalink
[ISSUE #3707]fix thread leak with rocketmq consumer start and shutdow…
Browse files Browse the repository at this point in the history
…n frequently
  • Loading branch information
willimpo committed Apr 17, 2023
1 parent 7a5746e commit e7081ca
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -106,7 +106,9 @@ public void start() {

@Override
public void shutdown(long awaitTerminateMillis) {

this.scheduledExecutorService.shutdown();
org.apache.rocketmq.common.utils.ThreadUtils.shutdownGracefully(this.consumeExecutor, awaitTerminateMillis, TimeUnit.MILLISECONDS);
this.cleanExpireMsgExecutors.shutdown();
}

public void shutdown() {
Expand Down

0 comments on commit e7081ca

Please sign in to comment.