qianye1001 commented on PR #10272:
URL: https://github.com/apache/rocketmq/pull/10272#issuecomment-4301096982

   Thanks for the contribution. A couple of concerns after reviewing the code:
   
   1. **autoClean() already handles missing groups.** The existing 
`PopLiteLockManager` already calls `autoClean()` every 5 minutes, and the 
`autoClean()` implementation in `QueueLevelConsumerManager` already removes 
entries when `containsSubscriptionGroup(group)` returns false. So the cleanup 
for deleted groups is already working as expected — the issue described in 
#10244 does not seem to exist in practice.
   
   2. **Potential concurrency issue.** Before this PR, both 
`lockService.removeTimeout()` and `autoClean()` ran sequentially in the same 
`PopLiteLockManager` ServiceThread. After this PR, `autoClean()` is moved to 
`BrokerController.scheduledExecutorService` while `removeTimeout()` stays in 
the `PopLiteLockManager` thread. This means they now execute concurrently on 
different threads, which could introduce race conditions between lock timeout 
cleanup and order info cleanup operating on related data structures 
simultaneously.


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