RockteMQ-AI commented on issue #2888: URL: https://github.com/apache/rocketmq-dashboard/issues/2888#issuecomment-5500452491
**Issue Evaluation** Category: `bug` | Status: **Confirmed** This is a valid race condition bug. The DLQ resend page relies on React state for submission guarding, allowing duplicate resend API calls when the user triggers the action multiple times before React commits the state update. **Root Cause:** Same pattern as #2889, #2890, and #2891 — React state updates are asynchronous. The resend action can be dispatched multiple times before the loading guard takes effect. **Impact:** Duplicate message resend calls to the backend; potential duplicate message delivery if the endpoint is not idempotent. **Severity:** Medium-High — duplicate message delivery in DLQ resend has direct data integrity implications. **Suggested fix:** Use a synchronous in-flight guard (`useRef` Set of pending resend IDs) checked synchronously before dispatching the API call. Clear on completion or error. An automated fix proposal can be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by github-manager* -- 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]
