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


##########
broker/src/main/java/org/apache/rocketmq/broker/lite/LiteSubscriptionRegistryImpl.java:
##########
@@ -501,6 +501,14 @@ protected void cleanupExpiredSubscriptions(long 
checkTimeout) {
                 topic, group, clientId, checkTimeout, 
System.currentTimeMillis() - liteSubscription.getUpdateTime());
         });
 
+        // Step 3: Expire tombstones of clients the sweep above cannot reach.
+        // A client evicted from its last liteTopic has no subscription entry 
left, so
+        // if it never syncs again (e.g. it terminated right after the 
eviction) nothing
+        // else clears its tombstones. Expire them on the same horizon as 
subscriptions:
+        // a live client always syncs well within the check timeout, at which 
point
+        // removeStale or the subscription expiry above reclaims the tombstone 
anyway.
+        exclusiveEvictionTombstones.removeExpired(checkTimeout);

Review Comment:
   Could this sweep retain tombstones for clients that are still actively 
syncing the evicted LMQ? If unsubscribe notifications are lost, full sync keeps 
the old client’s subscription alive and retains its tombstone, but this 
eviction-age expiry removes the guard after the timeout, allowing both the old 
and new clients to consume.



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