LiyunZhang10 commented on PR #10259:
URL: https://github.com/apache/rocketmq/pull/10259#issuecomment-4295193486

   > 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`?
   
   其实和 ack 无关,CID 后新 handle 没写回 manager,scheduler 停续期,broker 就重投(#9583),和客户端调不调 
ack 无关。Proxy 内部续期路径(DefaultReceiptHandleManager.java:215-219)本来就把新 handle 写回 
manager,这个 PR 只是补齐用户入口这条同样的路径。


-- 
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]

Reply via email to