Skip to content

Commit 7f80aea

Browse files
qianye1001RongtongJin
authored andcommitted
Optimize RocksDB CQ shutdown when using DoubleWriteCQ #9212
1 parent f657bf2 commit 7f80aea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

store/src/main/java/org/apache/rocketmq/store/DefaultMessageStore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ public void shutdown() {
517517
if (this.compactionService != null) {
518518
this.compactionService.shutdown();
519519
}
520-
if (messageStoreConfig.isRocksdbCQDoubleWriteEnable() && this.rocksDBMessageStore != null) {
520+
if (this.rocksDBMessageStore != null && this.rocksDBMessageStore.consumeQueueStore != null) {
521521
this.rocksDBMessageStore.consumeQueueStore.shutdown();
522522
}
523523
this.flushConsumeQueueService.shutdown();

0 commit comments

Comments
 (0)