absolute8511 commented on code in PR #10259:
URL: https://github.com/apache/rocketmq/pull/10259#discussion_r3115635142


##########
proxy/src/main/java/org/apache/rocketmq/proxy/grpc/v2/consumer/ChangeInvisibleDurationActivity.java:
##########
@@ -75,9 +75,25 @@ public CompletableFuture<ChangeInvisibleDurationResponse> 
changeInvisibleDuratio
     protected ChangeInvisibleDurationResponse 
convertToChangeInvisibleDurationResponse(ProxyContext ctx,
         ChangeInvisibleDurationRequest request, AckResult ackResult) {
         if (AckStatus.OK.equals(ackResult.getStatus())) {
+            String newHandleStr = ackResult.getExtraInfo();
+            if (newHandleStr != null) {
+                try {
+                    ReceiptHandle newHandle = 
ReceiptHandle.decode(newHandleStr);
+                    String group = request.getGroup().getName();
+                    String topic = request.getTopic().getName();
+                    MessageReceiptHandle newMessageReceiptHandle = new 
MessageReceiptHandle(
+                        group, topic, newHandle.getQueueId(), newHandleStr,
+                        request.getMessageId(), newHandle.getOffset(), 0);
+                    messagingProcessor.addReceiptHandle(ctx,

Review Comment:
   should only add this when auto renew is turn on



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