CleverZiv commented on pull request #2346: URL: https://github.com/apache/rocketmq/pull/2346#issuecomment-874584159
> I don't think this fix is suitable,org.apache.rocketmq.store.MappedFile#isAbleToCommit returns true under three conditions > > 1. this file is full > 2. more or equal than commitLeastPages pages have not committed > 3. commitLeastPages less than 0 > > this means commit action can be happened on these conditions,not just more or equal than commitLeastPages pages have not committed.so the origional judgement as following is ok > > > writePos - this.committedPosition.get() > 0 I agree with you. And I’m not sure if this is correct, it make me confused -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
