qianye1001 commented on PR #10259: URL: https://github.com/apache/rocketmq/pull/10259#issuecomment-4294708819
Thanks for the PR. I have a question about the underlying assumption here. Could you elaborate on which gRPC client scenario would lead to a `changeInvisibleDuration` call followed by an `ack` on the same message? As far as I understand the current client SDK designs (both Java and other language implementations), this sequence isn't a well-established pattern: - For **PushConsumer**, the SDK handles ack/nack internally after the message listener returns. There's no public API for the user to call `changeInvisibleDuration` mid-processing and then explicitly `ack`. - For **SimpleConsumer**, while the user does have access to both `changeInvisibleDuration` and `ack` APIs, the typical intended use of `changeInvisibleDuration` is to extend processing time — the subsequent `ack` would be the natural follow-up, but it's worth noting that `changeInvisibleDuration` on the broker side essentially performs an ack-then-re-enqueue (creating a new CK timer message). The new receipt handle returned is meant for *further* `changeInvisibleDuration` calls or a final `ack`, but is there a documented contract guaranteeing that the proxy must maintain handle continuity across this transition? My concern is: if no existing client SDK actually relies on calling `changeInvisibleDuration` followed by `ack` through the proxy's receipt handle management path, then this fix might be papering over a gap that should instead be addressed at the protocol/contract level. Could you provide a concrete client-side code path (from one of the official SDKs) that demonstrates this sequence passing through the proxy's `ReceiptHandleManager`? -- 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]
