mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-19 02:23:24 +08:00
@@ -517,11 +517,9 @@ public class DefaultMessageStore implements MessageStore {
|
||||
if (this.compactionService != null) {
|
||||
this.compactionService.shutdown();
|
||||
}
|
||||
|
||||
if (messageStoreConfig.isRocksdbCQDoubleWriteEnable()) {
|
||||
if (messageStoreConfig.isRocksdbCQDoubleWriteEnable() && this.rocksDBMessageStore != null) {
|
||||
this.rocksDBMessageStore.consumeQueueStore.shutdown();
|
||||
}
|
||||
|
||||
this.flushConsumeQueueService.shutdown();
|
||||
this.allocateMappedFileService.shutdown();
|
||||
this.storeCheckpoint.flush();
|
||||
|
||||
+1
-1
@@ -144,7 +144,7 @@ public class RocksDBConsumeQueueOffsetTable {
|
||||
Function<OffsetEntry, Boolean> predicate = entry -> entry.type == OffsetEntryType.MAXIMUM;
|
||||
Consumer<OffsetEntry> fn = entry -> {
|
||||
topicQueueMaxCqOffset.putIfAbsent(entry.topic + "-" + entry.queueId, entry.offset);
|
||||
ROCKSDB_LOG.info("Max {}:{} --> {}|{}", entry.topic, entry.queueId, entry.offset, entry.commitLogOffset);
|
||||
log.info("LoadMaxConsumeQueueOffsets Max {}:{} --> {}|{}", entry.topic, entry.queueId, entry.offset, entry.commitLogOffset);
|
||||
};
|
||||
try {
|
||||
forEach(predicate, fn);
|
||||
|
||||
Reference in New Issue
Block a user