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

   version  4.9.3
   In  DefaultMessageStore.java ,There is the following code:
   
   else if (offset > maxOffset) {
                   status = GetMessageStatus.OFFSET_OVERFLOW_BADLY;
                   if (0 == minOffset) {
                       nextBeginOffset = nextOffsetCorrection(offset, 
minOffset);
                   } else {
                       nextBeginOffset = nextOffsetCorrection(offset, 
maxOffset);
                   }
   
   It can be seen that if minOffset=0.Consumption will start from 0.This can 
lead to repeated consumption of data for several days.
   
   I suggest modifying to:。
   
   else if (offset > maxOffset) {
                   status = GetMessageStatus.OFFSET_OVERFLOW_BADLY;
                   nextBeginOffset = nextOffsetCorrection(offset, maxOffset);
   
   If it's ok i can submit a pr .
   
   


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