chia7712 commented on PR #17796:
URL: https://github.com/apache/kafka/pull/17796#issuecomment-2515334084

   @apoorvmittal10 The listeners utilize a `CopyOnWriteArrayList`, meaning that 
both "add" and "remove" operations can trigger array copies. I am concerned 
that this could lead to performance issues when a partition becomes a follower, 
as it may result in `n * (n + 1) / 2` copies when listeners are removed one by 
one.


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