xych06688-a11y opened a new pull request, #12:
URL: https://github.com/apache/rocketmq-ai/pull/12

   When `RocketMQUtil.getResult` is interrupted, times out, or its future 
completes exceptionally, it exits before removing the request from 
`MESSAGE_RESPONSE_MAP`. Repeated failed requests therefore retain pending 
futures indefinitely.
   
   Move removal into a `finally` block and remove only the future registered by 
this invocation, so cleanup also runs on failure without removing a replacement 
value.
   
   Add regression tests for successful completion, interruption, and 
exceptional completion. The interruption and exceptional-completion cases fail 
against the original implementation and pass with this change. The fixed 
120-second timeout is not directly exercised by these tests; it exits through 
the same `finally` block.
   
   Validation: JDK 17, `mvn -s <mirror-settings> -B -f rocketmq-a2a/pom.xml 
verify`; 3 tests passed, Checkstyle passed. No broker or cloud account is 
needed to run the tests.
   
   Scope: this change does not address the separate send-before-registration 
race or redesign shared resource caches.


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