majialoong opened a new issue, #11639:
URL: https://github.com/apache/rocketmq/issues/11639

   ### Before Creating the Bug Report
   
   - [x] I found a bug, not just asking a question, which should be created in 
[GitHub Discussions](https://github.com/apache/rocketmq/discussions).
   
   - [x] I have searched the [GitHub 
Issues](https://github.com/apache/rocketmq/issues) and [GitHub 
Discussions](https://github.com/apache/rocketmq/discussions)  of this 
repository and believe that this is not a duplicate.
   
   - [x] I have confirmed that this bug belongs to the current repository, not 
other repositories of RocketMQ.
   
   
   ### Runtime platform environment
   
   All
   
   ### RocketMQ version
   
   5.5.1
   
   ### JDK Version
   
   JDK 21
   
   ### Describe the Bug
   
   1. `MqClientAdminImpl` swallows invoke/decode exceptions: all methods chain 
`thenAccept` on `remotingClient.invoke` without `exceptionally`, so 
connect/timeout/decode failures leave the returned `CompletableFuture` 
incomplete forever.
   2. Unbounded lookups and timeout handling in `ProxyAdminGrpcService`:
      - `allMasterBrokerAddrs`, `deleteSubscription`, and `getTopicRoute` lack 
`withTimeout`, causing RPCs to hang indefinitely when the underlying future 
stalls.
      - `AdminService#getTopicRouteData` uses a hardcoded 3s timeout instead of 
`grpcAdminServerRequestTimeoutMillis`.
      - `withTimeout` throws `IllegalStateException` (`INTERNAL_SERVER_ERROR`) 
instead of `PROXY_TIMEOUT`.
   3. `ListConsumerConnection` masks NameServer failures as `OK`: offline 
groups are already handled inside `collectConnections`; outer failures come 
from `allMasterBrokerAddrs` (NameServer errors) but are returned as `Code.OK` 
with an empty list.
   
   ### Steps to Reproduce
   
   1. Start Proxy with `grpcAdminServerEnable=true` and an unreachable 
NameServer (or mock `RemotingClient#invoke` to return a failed future).
   2. Call `ListConsumerConnection` (or `ListSubscription` / 
`DescribeSubscription` / `DescribeGroupAccumulation`).
   
   ### What Did You Expect to See?
   
   - `MqClientAdminImpl` propagates underlying exceptions promptly.
   - All Proxy Admin lookups are bounded and return `Code.PROXY_TIMEOUT` on 
timeout; `GetTopicRoute` honors `grpcAdminServerRequestTimeoutMillis`.
   - `ListConsumerConnection` returns an error on NameServer failure (while 
still returning `Code.OK` for offline groups).
   
   ### What Did You See Instead?
   
   - RPCs hang indefinitely on remoting failures (no response sent).
   - `ListConsumerConnection` returns `Code.OK` with 0 clients when NameServer 
lookup fails.
   - `withTimeout` maps timeouts to `INTERNAL_SERVER_ERROR`.
   
   ### Additional Context
   
   _No response_


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