X-LightYear opened a new pull request, #7298:
URL: https://github.com/apache/rocketmq-dashboard/pull/7298

   ## Summary
   
   - normalize the DLQ redelivery target topic shown in MCP dry-run plans
   - keep the preview aligned with the existing service normalization used on 
execution
   - add regression coverage for whitespace-padded target topics
   
   ## Root cause
   
   `MessageRedeliveryDlqToolHandler.preview` used the raw `targetTopic`, while 
`DLQService.resendMessages` trims the same value before delegating to the 
provider. A dry-run plan could therefore describe a different target from the 
mutation that would execute.
   
   ## Fix
   
   Trim non-blank target topics in the preview projection and retain 
`ORIGINAL_TOPIC` for blank or absent values. Execution behavior is unchanged.
   
   ## Testing
   
   - pre-fix deterministic regression failed for `" TopicA-retry "`
   - `MessageRedeliveryDlqToolHandlerTest`: 9 passed
   - checkstyle: 0 violations
   - `git diff --check`: passed
   
   Fixes #7297
   


-- 
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]

Reply via email to