yyqdbngt opened a new pull request, #3102:
URL: https://github.com/apache/rocketmq-dashboard/pull/3102

   ### Summary
   Guard and trim topic names in the metadata route lookup:
   
   - The private `getTopicRoutes(admin, name)` now returns an empty list for 
blank names (no broker probe) and trims the name before `examineTopicRouteInfo`.
   
   ### Why
   A topic pasted with surrounding whitespace previously reached the broker 
probe verbatim and produced confusing broker-side failures; a blank name 
triggered an unnecessary (and noisy) probe.
   
   ### Testing
   - `mvn -f server/pom.xml -Dtest=RocketMQMetadataProviderTest test` passes: 
36/36 (35 existing + 1 new asserting the trimmed probe and the blank-name short 
circuit).
   


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