RockteMQ-AI commented on issue #1430: URL: https://github.com/apache/rocketmq-clients/issues/1430#issuecomment-6311192600
**Issue Evaluation** Category: `type/bug` | Status: **Confirmed** The reported issue has been verified against the current codebase (commit `a3d1de8b`). **Root Cause:** `SimpleConsumer::change_invisible_duration` returns the new receipt handle as a `String` but does not update the `MessageView`'s internal `receipt_handle` field. Subsequent `ack()` calls use the stale handle, which the server has already invalidated. **Code Location:** `rust/src/simple_consumer.rs:196-207` — the method delegates to `client.change_invisible_duration()` and returns the result without modifying the `ack_entry`. **Impact:** Messages are silently redelivered after being acked, breaking the at-most-once delivery guarantee. Applications have no error to detect this. **Severity:** High — data correctness issue affecting all Rust clients using `change_invisible_duration`. **Comparison with Java:** Java client correctly updates the handle: `impl.setReceiptHandle(response.getReceiptHandle())`. An automated fix proposal will be generated. Reply `/approve` to proceed with PR generation. --- *Automated evaluation by RockteMQ-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]
