messere1 opened a new issue, #1573:
URL: https://github.com/apache/rocketmq-dashboard/issues/1573

   ### Before Creating the Bug Report
   
   - [x] I found a reproducible UI concurrency bug.
   - [x] I searched existing issues and pull requests for duplicate 
system-alert acknowledgements and double clicks.
   - [x] I confirmed the bug exists on the current rocketmq-studio branch.
   
   ### Describe the Bug
   
   SystemAlertsPage tracks acknowledging IDs in React state, but handleAck does 
not synchronously reject a second request for the same alert.
   
   A rapid double click can enter handleAck twice before the loading state 
disables the button. This sends duplicate acknowledge requests for one alert. 
The page must still allow different alerts to be acknowledged concurrently, so 
a single global submitting flag is not sufficient.
   
   ### Expected Behavior
   
   - Allow at most one in-flight acknowledge request per alert ID.
   - Continue allowing different alert IDs to be acknowledged concurrently.
   - Clear the per-ID guard after both success and failure so retry remains 
possible.
   - Preserve the existing per-row loading indicator.
   - Add focused tests for same-ID deduplication and different-ID concurrency.
   
   ### Affected Area
   
   RocketMQ Studio Track 1, System Alerts page.
   
   ### Proposed Scope
   
   Limit the change to SystemAlertsPage and its existing frontend test. No API 
or backend changes are required.


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