rocketmq
rocketmq copied to clipboard
add import/export command and test #6972
Which Issue(s) This PR Fixes
Fixes #6971 refer failed pull request #6972
Brief Description
- migrate message across env: we switch our system from aws to aliyun , some message still not consumed in aws , we should migrate message from aws to aliyun ==> just use exportMessage and importMessage .
- fix some wrong message: after deploy some bug , the message format is not correct ==> we can exportMessage with json body --> modify message body --> importMessasge
- trace bug in lots of message body ==> after export message with json/text format ,we could easily search some keywords to view message detail , such as
grep keyword messageFile
How Did You Test This Change?
- exportMessage: mock broker , fetch some messages and export to file , at the same time , show result 100% on system.out
- importMessage: mock broker , read a message file and send message to broker , at the same time , show result 100% on system.out
example usage
Codecov Report
Attention: Patch coverage is 67.56757% with 96 lines in your changes missing coverage. Please review.
Project coverage is 47.52%. Comparing base (
f43d9d1) to head (1ec33a6).
Additional details and impacted files
@@ Coverage Diff @@
## develop #8676 +/- ##
==============================================
+ Coverage 0 47.52% +47.52%
- Complexity 0 11565 +11565
==============================================
Files 0 1279 +1279
Lines 0 89745 +89745
Branches 0 11550 +11550
==============================================
+ Hits 0 42652 +42652
- Misses 0 41845 +41845
- Partials 0 5248 +5248
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
This PR is stale because it has been open for 365 days with no activity. It will be closed in 3 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this PR.
This PR was closed because it has been inactive for 3 days since being marked as stale.