Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #11557 +/- ##
=============================================
+ Coverage 49.86% 49.97% +0.10%
- Complexity 14454 14468 +14
=============================================
Files 1391 1391
Lines 103432 103442 +10
Branches 13550 13552 +2
=============================================
+ Hits 51573 51690 +117
+ Misses 45636 45512 -124
- Partials 6223 6240 +17 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Added a unit test for the default Local validation passed: all 7 tests in The workflow runs for this update are awaiting maintainer approval. Could a maintainer please approve them so CI and Codecov can run on the latest commit? Thank you. |
|
I reproduced the timeout locally. The test passed after I added a call to Would it make sense to fix the integration test setup in a separate PR so this one can stay focused on |
Which Issue(s) This PR Fixes
Brief Description
printMsgByQueuestops onNO_MATCHED_MSGeven when the pull result advancesnextBeginOffset, so a later batch with matching messages can be skipped. Continue scanning when the unmatched result advances the offset, and stop when it does not advance. The command still stops onNO_NEW_MSGorOFFSET_ILLEGAL.How Did You Test This Change?
Ran
PrintMessageByQueueCommandTestwith JUnit 4.13.2 using the upstream command sources compiled withjavac --release 8and local RocketMQ 5.5.0 distribution jars. The scripted consumer returned an unmatched batch at offset 0 and a matchingTagAmessage at offset 32. The regression failed before the fix because the command only requested offset 0. All six tests passed after the fix, including the case where the unmatched result did not advance the offset.