lollipopjin commented on code in PR #9256: URL: https://github.com/apache/rocketmq/pull/9256#discussion_r2053690486
########## store/src/main/java/org/apache/rocketmq/store/queue/RocksDBConsumeQueue.java: ########## @@ -265,7 +266,12 @@ public long estimateMessageCount(long from, long to, MessageFilter filter) { @Override public long getMinOffsetInQueue() { - return this.messageStore.getMinOffsetInQueue(this.topic, this.queueId); + try { + return this.consumeQueueStore.getMinOffsetInQueue(topic, queueId); + } catch (RocksDBException e) { + ERROR_LOG.error("getMinOffsetInQueue Failed. topic: {}, queueId: {}", topic, queueId, e); + return -1; Review Comment: To make sure here the default value is -1, but not 0. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org