Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6300

SelectorTest may fail with ConcurrentModificationException

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.1, 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      From https://builds.apache.org/job/kafka-trunk-jdk8/2255/testReport/junit/org.apache.kafka.common.network/SelectorTest/testImmediatelyConnectedCleaned/ :

      java.util.ConcurrentModificationException
      	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
      	at java.util.ArrayList$Itr.next(ArrayList.java:859)
      	at org.apache.kafka.common.network.EchoServer.closeConnections(EchoServer.java:115)
      	at org.apache.kafka.common.network.EchoServer.close(EchoServer.java:121)
      	at org.apache.kafka.common.network.SelectorTest.tearDown(SelectorTest.java:95)
      

      It seems sockets ArrayList was modified during closing.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: