-
Notifications
You must be signed in to change notification settings - Fork 554
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
[ISSUE #30]Supports batch resending and batch exporting dlq messages. #37
Conversation
* limitations under the License. | ||
*/ | ||
package org.apache.rocketmq.dashboard.model; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getters/setters can be generated by @Data
dlqMessage.getClientId()); | ||
consumeMessageDirectlyResults.add(consumeMessageDirectlyResult); | ||
} | ||
return consumeMessageDirectlyResults.get(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Batch resend the message but just get the first result. If we do a batch operation, we should get all the results.
DlqMessageExcelModel excelModel = new DlqMessageExcelModel(messageExt); | ||
dlqMessageExcelModelList.add(excelModel); | ||
} catch (Exception e) { | ||
log.error("Failed to query message by Id:{}", dlqMessage.getMsgId()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe returning the failed record with message-id and fail reason is better than just ignoring the exception.
DlqMessageExcelModel excelModel = new DlqMessageExcelModel();
excelModel.setMessageId(messageId);
excelModel.setException(error);
dlqMessageExcelModelList.add(excelModel);
What is the purpose of the change
#30
Send and export dead-letter messages in batches.
Brief changelog
XX
Verifying this change
XXXX
Follow this checklist to help us incorporate your contribution quickly and easily. Notice,
it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR
.[ISSUE #123] Fix UnknownException when host config not exist
. Each commit in the pull request should have a meaningful subject line and body.mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle
to make sure basic checks pass. Runmvn clean install -DskipITs
to make sure unit-test pass. Runmvn clean test-compile failsafe:integration-test
to make sure integration-test pass.