You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "coder999o (via GitHub)" <gi...@apache.org> on 2026/10/11 01:33:18 UTC

[PR] fix(message): keep dismissed queue details closed [rocketmq-dashboard]

coder999o opened a new pull request, #6207:
URL: https://github.com/apache/rocketmq-dashboard/pull/6207

   ## What is the purpose of the change
   
   Closing a queue message card while a replacement pull is pending does not invalidate that request. A late response can reopen the dismissed card or display an obsolete error.
   
   Discard completions belonging to dismissed pulls while allowing the operator to request the queue again immediately.
   
   ## Brief changelog
   
   - Track each in-flight queue pull with a unique ownership token.
   - Invalidate only the dismissed queue's pull, preserving requests for other queues.
   - Prevent stale responses from overwriting newer results or releasing their loading locks.
   - Add four regression tests covering dismissal, independent queues, immediate retry and late failures.
   
   ## Verifying this change
   
   - `cd web && npm test -- src/components/__tests__/QueueBrowser.test.tsx src/pages/instance/__tests__/MessagePage.test.tsx` — 37 tests passed.
   - `cd web && npx tsc -p tsconfig.app.json --noEmit --composite false --incremental false` — passed.
   - `cd web && npx eslint src/components/QueueBrowser.tsx src/components/__tests__/QueueBrowser.test.tsx` — no errors; one existing Fast Refresh warning.
   - `cd web && npx prettier --check src/components/QueueBrowser.tsx src/components/__tests__/QueueBrowser.test.tsx` — passed.
   - `git diff --check` — passed.
   
   All four new regressions failed before the fix and passed afterward. Validation used mocked APIs; the full frontend suite and live Broker integration were not run.


-- 
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: [PR] fix(message): keep dismissed queue details closed [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on PR #6207:
URL: https://github.com/apache/rocketmq-dashboard/pull/6207#issuecomment-6120495878

   Thanks — this is merged, as part of [`7df91fde3`](https://github.com/apache/rocketmq-dashboard/commit/7df91fde36241973ee604b763e5edfae5f26c40f) on `rocketmq-studio`.
   
   Your change went in together with #6064 and #6303 — all yours, all in the same area — so we folded them into a single commit instead of landing several near-identical entries for the same subsystem. Nothing was dropped.
   
   The commit message calls this one out explicitly:
   
   > #6207 `closeEntry` at `QueueBrowser.tsx:145-147` only filtered `entries` and left `pullingRef` alone, so a same-key pull still in flight passed the `requestId === requestSeqRef.current` ownership check at `:128` and re-inserted the card the operator had just dismissed (the `catch` branch at `:134` re-raised a toast for the same abandoned pull), while `pullingRef.has(key)` at `:116` kept that queue locked until the stale request settled → the in-flight registry becomes a `Map<string, symbol>` keyed by a per-pull token, all three ownership checks go through a single `ownsPull()` helper, and `closeEntry` deletes the key's registration and releases the loading lock; the exported `pulling` stays a `Set<string>` and the scope-switch and unmount `clear()` calls are unaffected.
   
   Closing as folded, not rejected.
   


-- 
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: [PR] fix(message): keep dismissed queue details closed [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #6207: fix(message): keep dismissed queue details closed
URL: https://github.com/apache/rocketmq-dashboard/pull/6207


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