Skip to content

Commit

Permalink
[ISSUE #7305] Fix metrics and transactional not shutdown cause broker…
Browse files Browse the repository at this point in the history
… coredump
  • Loading branch information
lizhimins committed Sep 6, 2023
1 parent d67b9d6 commit 73e16e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1302,6 +1302,10 @@ protected void shutdownBasicService() {
this.fastRemotingServer.shutdown();
}

if (this.brokerMetricsManager != null) {
this.brokerMetricsManager.shutdown();
}

if (this.brokerStatsManager != null) {
this.brokerStatsManager.shutdown();
}
Expand All @@ -1324,6 +1328,10 @@ protected void shutdownBasicService() {
this.ackMessageProcessor.shutdownPopReviveService();
}

if (this.transactionalMessageService != null) {
this.transactionalMessageService.close();
}

if (this.notificationProcessor != null) {
this.notificationProcessor.getPopLongPollingService().shutdown();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,9 @@ public boolean open() {

@Override
public void close() {

if (this.transactionalOpBatchService != null) {
this.transactionalOpBatchService.shutdown();
}
}

public Message getOpMessage(int queueId, String moreData) {
Expand Down

0 comments on commit 73e16e4

Please sign in to comment.