RockteMQ-AI commented on issue #10764:
URL: https://github.com/apache/rocketmq/issues/10764#issuecomment-5162895777

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   The reported issue has been verified against the current codebase.
   
   **Root Cause:** `InvocationChannel.clearExpireContext()` iterates 
`inFlightRequestMap` and calls `iterator.remove()` for expired entries, but 
never completes the `CompletableFuture<RemotingCommand>` held by the 
`InvocationContext`. The future is left pending indefinitely.
   
   **Impact:** Local proxy callers on `sendMessage()` / `popMessage()` can hang 
forever when the invocation context expires and is cleaned up without 
completing the response future.
   
   **Severity:** medium
   
   **Suggested fix:** Before removing the expired entry from the map, complete 
the associated future exceptionally (e.g. with a 
`RemotingSysResponseCode.SYSTEM_BUSY` or timeout error) so callers are 
unblocked.
   
   An automated fix proposal will be generated. Reply `/approve` to proceed 
with PR generation.
   
   ---
   *Automated evaluation by github-manager-bot*


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