RockteMQ-AI commented on issue #10494: URL: https://github.com/apache/rocketmq/issues/10494#issuecomment-4704441951
**Issue Evaluation** Category: `type/bug` | Status: **Confirmed** Verified against the current test code. In `HATest.testSemiSyncReplica()` (line 134), after `asyncPutMessage` returns `PUT_OK` in semi-sync mode, the test immediately reads from the slave store via `lookMessageByOffset`. However, `PUT_OK` only confirms that the data has been replicated to the slave's commitLog — the slave's `ConsumeQueue`/`Index` dispatch may not have completed yet. **Root Cause:** Race condition between semi-sync replication ack and slave dispatch lifecycle. The test lacks synchronization to ensure the slave has fully dispatched the message before reading. **Impact:** Intermittent CI failures on `HATest.testSemiSyncReplica`. **Severity:** medium — test reliability, not production behavior. An automated fix proposal will be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by github-manager-bot* -- 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]
