kamil-adam-nowak commented on PR #17826:
URL: https://github.com/apache/kafka/pull/17826#issuecomment-2630662385

   I tested version 3.5.1:  
   
https://github.com/apache/kafka/blob/3.5.1/clients/src/main/java/org/apache/kafka/clients/consumer/internals/OffsetFetcher.java#L228
   
   In this version, there is a `synchronized (future)` block too, but I still 
got a `ConcurrentModificationException`.
   
   Only the `future` object is synchronized; `remainingToSearch` is not.  
   It looks like another thread modified `remainingToSearch` while our thread 
was inside the `synchronized (future)` block.


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