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

   ## Summary
   - reset the Metrics Explorer internal data-source reference when an instance 
switch makes the selected source unavailable
   - reload the selected metric through the default source immediately after 
fallback
   - cancel the scheduled fallback during effect cleanup
   - cover instance-scoped source fallback and subsequent refreshes with a 
regression test
   
   ## Root cause and impact
   The availability effect cleared only the rendered `dataSourceKey` state. The 
stable ref used by the query callback retained the previous instance's source 
key, so the selector appeared to use the default source while refreshes 
continued querying the unavailable source. Keeping the state and ref 
synchronized prevents cross-instance metrics requests.
   
   Closes #1603
   
   ## Validation
   - npm test -- --run src/components/__tests__/MetricsExplorer.test.tsx (9 
passed)
   - npx eslint src/components/MetricsExplorer.tsx 
src/components/__tests__/MetricsExplorer.test.tsx
   - npm run build
   - git diff --check


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

Reply via email to