Shekharrajak commented on code in PR #22603:
URL: https://github.com/apache/kafka/pull/22603#discussion_r3428076214
##########
share-coordinator/src/main/java/org/apache/kafka/coordinator/share/ShareCoordinatorService.java:
##########
@@ -141,6 +142,8 @@ public class ShareCoordinatorService implements
ShareCoordinator {
*/
private volatile boolean shouldRunPeriodicJob;
+ private final AtomicLong periodicJobGeneration = new AtomicLong();
Review Comment:
protects duplicate timer chains - similar to epoch concept.
--
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]