Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add import/export command and test #6972 #8676

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

carlvine500
Copy link
Contributor

Which Issue(s) This PR Fixes

Fixes #6971
refer failed pull request #6972

Brief Description

  1. 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 .
  2. fix some wrong message: after deploy some bug , the message format is not correct ==> we can exportMessage with json body --> modify message body --> importMessasge
  3. 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?

  1. exportMessage: mock broker , fetch some messages and export to file , at the same time , show result 100% on system.out
  2. importMessage: mock broker , read a message file and send message to broker , at the same time , show result 100% on system.out

example usage

WeChatc0e14e48d1e5c6ef1ee135a5141a74bf

@codecov-commenter
Copy link

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

Files with missing lines Patch % Lines
...mq/tools/command/message/ExportMessageCommand.java 65.88% 37 Missing and 21 partials ⚠️
...mq/tools/command/message/ImportMessageCommand.java 66.97% 20 Missing and 16 partials ⚠️
.../apache/rocketmq/tools/command/MQAdminStartup.java 0.00% 2 Missing ⚠️
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     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add exportMessage and importMessage command for easy edit file
2 participants