You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Key-based message query on a topic without route returns 502 instead of an empty result #4919
I have searched the open issues of this repository and believe that this is not a duplicate.
This is a defect in RocketMQ Studio, not a usage question and not a defect in another Apache RocketMQ repository.
I can reproduce this on the current master branch, or I have stated the exact version I am running below.
Studio Version
branch: rocketmq-studio
git commit id: 1ef5d860 (upstream tip at the time of the report)
deployed as: built from source
Runtime Environment
Verified by code tracing and unit tests on rocketmq-studio @ 1ef5d860 (vitest for web/, JUnit for server/), not against a specific browser or deployment.
Connected RocketMQ Cluster
Not cluster-specific: the defect lives in the code path and reproduces on any deployment where the trigger condition below holds.
Describe the Bug
Per the query failure grading contract, business-empty results (topic route absent) must return 200 with empty data, while RPC-level failures are the only ones that error. The key query path grades NO_MESSAGE as empty but not TOPIC_NOT_EXIST, so a query against a just-deleted topic surfaces a gateway error.
Steps to Reproduce
Create a topic, send a message with a key, then delete the topic (or pick any topic whose route is gone).
On the message page, run a Key query with that topic.
The API returns 502 Failed to query messages by key: ....
What Did You Expect to See?
200 with an empty list, exactly like the topic-mode query (queryByTopic) already grades TOPIC_NOT_EXIST / NO_MESSAGE.
This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.
Activity
github-actions commentedon Sep 30, 2026
This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.