RockteMQ-AI commented on issue #876:
URL: 
https://github.com/apache/rocketmq-externals/issues/876#issuecomment-5250104929

   **Issue Evaluation**
   
   Category: `type/question`
   
   The offset minus one behavior in `rocketmq-spark` is related to how the 
connector handles offset commits. When committing an offset, the connector 
subtracts one because the offset represents the *next* message to consume, not 
the last consumed message. This is consistent with RocketMQ's offset semantics 
where the commit offset points to the next pull position.
   
   If you are seeing repeated consumption on restart, it is likely because:
   1. The offset was not committed before the restart
   2. The checkpoint was not flushed
   
   Ensure `enableCheckpoint` is true and `checkpointInterval` is configured 
appropriately.
   
   ---
   *Automated evaluation by github-manager*


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