X-LightYear opened a new pull request, #4968: URL: https://github.com/apache/rocketmq-dashboard/pull/4968
## Summary - prevent stale consumer subscription responses from overwriting newer diagnostic results - track request ownership per existing instance/group diagnostic cache key - add deterministic deferred-Promise regression coverage for overlapping subscription requests ## Root cause `ConsumerPage.loadSubscriptions` allowed overlapping requests for the same diagnostic context to update `subscriptionsByGroup` in completion order. An older request could therefore complete after a newer `重新诊断` request and replace the newer subscription-consistency result. The same stale request could also clear the newer loading state or surface an obsolete error. ## Fix Track the latest subscription request generation per existing `cacheKey`. Only the request that still owns the latest generation may update subscription data, loading state, or error state. Cache short-circuit behavior remains unchanged, and request generations for different instances or groups remain isolated. ## Testing - deterministic regression test: `ignores stale subscription responses after a newer diagnostic request completes` - `ConsumerPage.test.tsx`: 33 passed - focused frontend lint: passed - `npm run build`: passed Fixes #4961 -- 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]
