RockteMQ-AI commented on issue #11329: URL: https://github.com/apache/rocketmq/issues/11329#issuecomment-6110376203
**Issue Evaluation** Category: `type/bug` (example) | Status: **Confirmed** `ProducerWithNamespace.java` prints "send success" for every completed send without checking `SendResult.getSendStatus()`. `DefaultMQProducer.send()` can return normally with non-`SEND_OK` statuses (`FLUSH_DISK_TIMEOUT`, `FLUSH_SLAVE_TIMEOUT`, `SLAVE_NOT_AVAILABLE`) — exactly the cases where persistence guarantees are not met and the caller should know. **Suggested fix:** Check `result.getSendStatus() == SendStatus.SEND_OK` before printing success; report the actual status otherwise. --- *Automated evaluation by RocketMQ-AI* -- 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]
