guyinyou opened a new pull request, #1271:
URL: https://github.com/apache/rocketmq-clients/pull/1271
## Summary
- `Commit()` and `RollBack()` in `transactionImpl` silently swallowed errors
from `endTransaction`: errors were only logged inside the `Range` callback, and
the caller always received `nil`, making it impossible to detect a failed
commit or rollback.
- Capture the error from the `Range` closure and return it to the caller;
stop iteration on first error (matching Java's fail-fast behavior).
- Return an error when `messageSendReceiptMap` is empty, aligning with the
Java client's `IllegalStateException` ("Transactional message has not been sent
yet").
--
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]