GitHub user tedyu opened a pull request: https://github.com/apache/kafka/pull/4299
KAFKA-6300 SelectorTest may fail with ConcurrentModificationException Synchronization is added w.r.t. sockets ArrayList to avoid ConcurrentModificationException ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) You can merge this pull request into a Git repository by running: $ git pull https://github.com/tedyu/kafka trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/4299.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #4299 ---- commit 6ae5d0856ba3243f77157507b3cf554bfec4ac56 Author: tedyu <yuzhih...@gmail.com> Date: 2017-12-06T17:48:43Z KAFKA-6300 SelectorTest may fail with ConcurrentModificationException ---- ---