mjsax commented on PR #21365:
URL: https://github.com/apache/kafka/pull/21365#issuecomment-3843464262

   > maybe we would need to add a new member to TasksRegistry taking "pending 
tasks" which got closed?
   
   Yes, that is what I mean by this -- after we drain the 
pending-tasks-to-init, we would add them into some new "pending-task-to-close" 
member inside `TaskRegistry` and update `removeTask` so check ownership based 
on this new member.
   
   It's to some extend "cosmetics" as we only move all "pending task" from one 
collection into a different one, but it preserve the invariant we have, and 
makes the code cleaner.


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