Knowden opened a new issue, #5162:
URL: https://github.com/apache/rocketmq/issues/5162

   `maxFilterMessageCount` is calculated as `maxMsgNums * 
ConsumeQueue.CQ_STORE_UNIT_SIZE` and it's seems like meaning the 
maxFilterMessageSize.
   
   ```java
   final int maxFilterMessageCount = Math.max(16000, maxMsgNums * 
ConsumeQueue.CQ_STORE_UNIT_SIZE);
   ```
   
   and it's used to judge wether this pull has scanned enough message as follow
   ```java
   if (cqUnit.getQueueOffset() - offset > maxFilterMessageCount) {
       break;
   }
   ```
   the cqUnit.queueOffset is logic offset of consumer queue which is calculated 
as follow
   ```java
   long queueOffset = (sbr.getStartOffset() + sbr.getByteBuffer().position() -  
relativePos) / CQ_STORE_UNIT_SIZE;
   CqUnit cqUnit = new CqUnit(queueOffset,
           sbr.getByteBuffer().getLong(),
           sbr.getByteBuffer().getInt(),
           sbr.getByteBuffer().getLong());
   ```
   Is there something going wrong? or if I made some mistake when reading 
source code and submitting issue, please figure it out thanks
   
   


-- 
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]

Reply via email to