BILLYisavailable opened a new pull request, #18:
URL: https://github.com/apache/rocketmq-ai/pull/18

   Non-streaming calls register their response future in `getResult` after 
`producer.send` returns. A fast reply can reach `processNonStreamResult` before 
that registration and is discarded, leaving a successful request waiting for 
the 120-second timeout. This is the non-streaming counterpart of the streaming 
race addressed in #13.
   
   Register the future through the existing pre-send callback, use that path 
for all non-streaming operations, and remove the same future on success, send 
failure, interruption, or timeout. Streaming behavior and the public 
`getResult` method are unchanged.
   
   Validation (JDK 17, Maven 3.9.11): all 8 module tests pass. The new tests 
exercise replies delivered before `send` returns, delayed replies, send 
failures, and interrupted waits. The immediate-reply test times out against the 
original production code and succeeds with this change; no live broker is 
needed.
   


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