The GitHub Actions job "Build and Run Tests by Maven" on rocketmq.git/fix/produce-accumulator-concurrency has succeeded. Run started by GitHub user leizhiyuan (triggered by leizhiyuan).
Head commit for run: 095ff5790bee056ac85fc779420706dcf9d0c6a5 / leizhiyuann <[email protected]> fix(client): do not fail a batch when the sending caller is interrupted The previous handling only cleared an interrupt that was already pending when the batch send started. If the sending caller was interrupted while sendDirect waited for the broker, that InterruptedException failed the whole batch, including messages of other callers. DefaultMQProducer#sendBatchDirect now retries the batch send once when it is interrupted, then restores the interrupt status. The batch is still sent exactly as a normal sync send, with the same retry configuration. A second interrupt is not retried: the batch fails with InterruptedException, as it does today. The trade-off is at-least-once: the first attempt may have reached the broker, so that message can be stored twice. This matches the documented semantics of DefaultMQProducer#send, which may also deliver duplicates when it retries. Test: testSyncSend_batchSendIsNotAbortedByCallerInterrupt interrupts the caller that sends a two-message batch and asserts that the other message still gets its own result and the interrupt status is restored. Report URL: https://github.com/apache/rocketmq/actions/runs/44991713536 With regards, GitHub Actions via GitBox
