niuhf0452 commented on issue #9583: URL: https://github.com/apache/rocketmq/issues/9583#issuecomment-3142202962
> When the first pop operation is used to get messages, the server generates an initial handle A. If the visibility timeout is extended via the change invisiable time operation, the server creates a new handle B and triggers a state transition (effectively invalidating A and activating B). At this point, attempting to acknowledge the message using the old handle A will fail, as only the new handle B is valid for acknowledgment I understand. But please take a look at the source code, `receiptHandle` would be refreshed after `changeInvisibleDuration`. So in my case, I acknowledged to the new handle, not the old one. https://github.com/apache/rocketmq-clients/blob/master/java/client/src/main/java/org/apache/rocketmq/client/java/impl/consumer/SimpleConsumerImpl.java#L288 Anyway, the point is not how it works, the point is what can we do. My ask is: * Confirm if it's a bug, and fix it. * Or find a solution if it's not a bug. -- 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]
