lucasbru commented on PR #24166: URL: https://github.com/apache/kafka/pull/24166#issuecomment-6949546275
Thanks, that's simpler. I switched to the epoch check: the coordinator records the assignment epoch in onLoaded, and only when it derives the intermediate assignment again for that epoch or an earlier one does the refiner keep active tasks with their holders. heartbeatVersions is a plain HashMap again. I kept the hold on new warm-up plants in planWarmups though, since it guards a different thing. A member we haven't heard from yet has unknown version, and treating it as v0 would grant every pending migration cold, while planting only on the members that happened to heartbeat first would pick plants by heartbeat order rather than load. Warm-ups already held are kept, so it only delays new plants by about a heartbeat interval. With the epoch check the two parts no longer depend on each other: analyzeTasks only looks at keepActiveTasks, planWarmups only at whether everyone was heard from. I reran the randomized testbed (#23759, which now also models the re-derived epoch and checks that no active task moves on it): no invariant failures over 2000 scenarios, and cold restores vs. no-op are -69% for all-new groups and -35% for mixed v0/v1 groups. That's about 1% more cold restores than the previous version (4% on the large scenarios). -- 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]
