goutamadwant opened a new pull request, #13749: URL: https://github.com/apache/seatunnel/pull/13749
### Purpose of this pull request Fix premature completion of RocketMQ batch reads in Apache SeaTunnel. A batch with 35 messages and `batch.size = 10` finished after the first pull, leaving 25 messages unread. Fixes #13748 ### Does this PR introduce _any_ user-facing change? Yes. A batch drains each assigned queue to the exclusive end offset captured at startup. Filtered messages advance the queue offset, and an empty pull does not end the batch. Recovery keeps the captured bounds. Streaming continues to read new messages as they arrive. ### How was this patch tested? - Ran 38 RocketMQ unit tests and three Zeta integration tests against RocketMQ 4.9.4. The integration regression seeds 35 messages, pulls 10 at a time, and asserts that all 35 reach the sink. - A live reader check verified IDs 0–34 exactly once, with offsets 35 and 36 present but excluded from the batch. It also covered an empty queue and rejected tags. A streaming check read both new IDs after they were appended. - Unit tests covered cancellation during a pull, late split assignment, and checkpoint restore. Spotless passed. ### Check list - [x] Updated the English and Chinese RocketMQ source guides. - [x] Added an integration regression for the existing connector. -- 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]
