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 #5286
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.
Re-submission: the original report (#4919) was closed by the stale bot after 7 days without triage activity, and GitHub now rejects reopening items in this repository. Refiled unchanged; the fix PR is linked below.
Activity
Frun1na commentedon Oct 1, 2026
Fix: #5287
Frun1na commentedon Oct 7, 2026
Friendly ping — the fix for this is in #5287 and is waiting for review; keeping the issue from the stale bot meanwhile.
Frun1na commentedon Oct 10, 2026
Friendly ping — the fix for this is in #5287 and is waiting for review; keeping the issue from the stale bot meanwhile.