yx9o commented on code in PR #11421:
URL: https://github.com/apache/rocketmq/pull/11421#discussion_r4652382013


##########
proxy/src/main/java/org/apache/rocketmq/proxy/service/receipt/DefaultReceiptHandleManager.java:
##########
@@ -128,6 +128,12 @@ public void start() throws Exception {
             public void shutdown() throws Exception {
                 scheduledExecutorService.shutdown();
                 clearAllHandle();
+                if (renewalWorkerService != null) {
+                    renewalWorkerService.shutdown();
+                }
+                if (returnHandleGroupWorkerService != null) {
+                    returnHandleGroupWorkerService.shutdown();

Review Comment:
   If the inactivity scanner removes a receipt group just before this pool 
shuts down, its cleanup submission can be silently dropped, leaving the 
messages invisible until their timeout. Could we stop and drain the scanner 
before closing this pool?



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