Skip to content

Commit

Permalink
Optimize RocksDB CQ shutdown when using DoubleWriteCQ apache#9212
Browse files Browse the repository at this point in the history
  • Loading branch information
qianye1001 authored Feb 28, 2025
1 parent 5936695 commit 66d4a26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public void shutdown() {
if (this.compactionService != null) {
this.compactionService.shutdown();
}
if (messageStoreConfig.isRocksdbCQDoubleWriteEnable() && this.rocksDBMessageStore != null) {
if (this.rocksDBMessageStore != null && this.rocksDBMessageStore.consumeQueueStore != null) {
this.rocksDBMessageStore.consumeQueueStore.shutdown();
}
this.flushConsumeQueueService.shutdown();
Expand Down

0 comments on commit 66d4a26

Please sign in to comment.