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

   ## Summary
   
   - return the broker-normalized TTL from `rmq.litetopic.extend_ttl`
   - preserve the requested TTL for auditability
   - document the effective TTL field in the MCP catalog schema
   
   ## Root cause
   
   `RocketMQLiteTopicProvider.extendTTL` normalizes TTL values to whole minutes 
and caps them at 30 days before writing to the broker. The MCP handler 
previously discarded that normalized value and returned only the requested TTL, 
so a successful response could not describe the resulting broker configuration.
   
   ## Fix
   
   Propagate the applied TTL from the provider through `LiteTopicService` to 
the MCP result as `appliedTtlMillis`. The existing REST response remains 
unchanged.
   
   ## Testing
   
   - `LiteTopicExtendTtlToolHandlerTest`: 5 passed
   - `RocketMQLiteTopicProviderTest`: 27 passed
   - `LiteTopicServiceTest`: 10 passed
   - `LiteTopicControllerTest`: 10 passed
   - `ToolOutputSchemaContractTest`: 2 passed
   - Checkstyle: 0 violations
   - `git diff --check`: passed
   
   Fixes #7204
   


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