RockteMQ-AI commented on issue #2889: URL: https://github.com/apache/rocketmq-dashboard/issues/2889#issuecomment-5500449279
**Issue Evaluation** Category: `bug` | Status: **Confirmed** This is a valid race condition bug. The LiteTopic TTL extension dialog relies on React state for submission guarding, allowing duplicate TTL extension submissions when the user triggers the action multiple times before React commits the state update. **Root Cause:** Same pattern as #2890 and #2891 — React state is asynchronous and cannot serve as a synchronous mutation guard. The dialog can dispatch multiple `extendTTL` calls for the same topic before the loading state takes effect. **Impact:** Duplicate TTL extension API calls; potential backend side effects if the endpoint is not idempotent. **Severity:** Medium — affects correctness under rapid interaction. **Suggested fix:** Use a synchronous in-flight guard (`useRef` or module-level Set) checked before dispatching the API call, cleared 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]
