Skip to content

fix(message): trim trace query parameters - #3110

Open
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-trace-param-trim
Open

fix(message): trim trace query parameters#3110
yyqdbngt wants to merge 1 commit into
apache:rocketmq-studiofrom
yyqdbngt:codex/yy-trace-param-trim

Conversation

@yyqdbngt

@yyqdbngt yyqdbngt commented Sep 4, 2026

Copy link
Copy Markdown

Summary

Trim trace query parameters before lookup:

  • getMessageTrace normalizes msgId/topic/traceTopic and getMessageTraceByKey normalizes key/topic/traceTopic (null-safe trim) before delegating to the admin lookups.

Why

Padded identifiers/paste artifacts previously flowed into the broker-side topic/id lookups, producing empty traces or confusing failures for otherwise valid input.

Testing

  • mvn -f server/pom.xml -Dtest=RocketMQMessageProviderTest test passes: 31/31 (existing suite; behavior unchanged for clean input).

@RockteMQ-AI RockteMQ-AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

Fix looks good. Consider adding test coverage.


Automated review by github-manager-bot

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.

3 participants