You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Frun1na (via GitHub)" <gi...@apache.org> on 2026/09/20 20:08:32 UTC
[I] [Bug] rmqctl fails every command with context deadline exceeded when --timeout is 0s or negative [rocketmq-dashboard]
Frun1na opened a new issue, #4628:
URL: https://github.com/apache/rocketmq-dashboard/issues/4628
### Bug Description
When `rmqctl` is run with `--timeout 0s` (or any negative duration), every command fails immediately with a context error instead of running:
```
$ rmqctl --server http://localhost:8080 --instance-id instance-dev --timeout 0s topic list
Error: Post "http://localhost:8080/api/mcp/tools/call": context deadline exceeded
```
The server is never contacted — the request fails before it is sent.
### Steps to Reproduce
1. Start a healthy dashboard server with an accessible instance.
2. Run any read-only command with `--timeout 0s`, e.g. `rmqctl --server ... --instance-id ... --timeout 0s topic list`.
3. The command fails with `context deadline exceeded` even though the server responds instantly.
### Expected Behavior
A non-positive timeout should mean "no client-side timeout" (the common convention for timeout flags), so the command should succeed.
### Actual Behavior
`rmqctl/internal/studio/client.go` passes `target.Timeout` unconditionally to `context.WithTimeout`, and a non-positive duration expires the context immediately, so every request fails before being sent.
### Environment
- rmqctl built from `rocketmq-studio` branch
- Linux x86_64
- Go 1.27
--
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: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] rmqctl fails every command with context deadline exceeded when --timeout is 0s or negative [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed issue #4628: [Bug] rmqctl fails every command with context deadline exceeded when --timeout is 0s or negative
URL: https://github.com/apache/rocketmq-dashboard/issues/4628
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] rmqctl fails every command with context deadline exceeded when --timeout is 0s or negative [rocketmq-dashboard]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #4628:
URL: https://github.com/apache/rocketmq-dashboard/issues/4628#issuecomment-5752659494
**Issue Evaluation**
Category: `bug` | Status: **Under Review**
Thank you for reporting this issue. It has been classified as a potential bug and flagged for code-level verification.
**Next steps:**
- The issue will be verified against the current codebase
- If confirmed, a fix proposal (spec + PR) may be generated automatically
- You can reply with `/approve` to proceed, `/revise` to request changes, or `/reject` to decline
---
*Automated evaluation by RockteMQ-AI*
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] rmqctl fails every command with context deadline exceeded when --timeout is 0s or negative [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on issue #4628:
URL: https://github.com/apache/rocketmq-dashboard/issues/4628#issuecomment-5760974898
Resolved by #4627 (merged into rocketmq-studio as 7a1b8eeb4).
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org