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

IQv2 can throw ConcurrentModificationException when accessing Tasks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • 3.5.0
    • streams
    • None

    Description

      From failure in PositionRestartIntegrationTest.verifyStore[cache=false, log=true, supplier=IN_MEMORY_WINDOW, kind=PAPI]
      java.util.ConcurrentModificationException
      at java.base/java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1208)
      at java.base/java.util.TreeMap$EntryIterator.next(TreeMap.java:1244)
      at java.base/java.util.TreeMap$EntryIterator.next(TreeMap.java:1239)
      at java.base/java.util.HashMap.putMapEntries(HashMap.java:508)
      at java.base/java.util.HashMap.putAll(HashMap.java:781)
      at org.apache.kafka.streams.processor.internals.Tasks.allTasksPerId(Tasks.java:361)
      at org.apache.kafka.streams.processor.internals.TaskManager.allTasks(TaskManager.java:1537)
      at org.apache.kafka.streams.processor.internals.StreamThread.allTasks(StreamThread.java:1278)
      at org.apache.kafka.streams.KafkaStreams.query(KafkaStreams.java:1921)
      at org.apache.kafka.streams.integration.utils.IntegrationTestUtils.iqv2WaitForResult(IntegrationTestUtils.java:168)
      at org.apache.kafka.streams.integration.PositionRestartIntegrationTest.shouldReachExpectedPosition(PositionRestartIntegrationTest.java:438)
      at org.apache.kafka.streams.integration.PositionRestartIntegrationTest.verifyStore(PositionRestartIntegrationTest.java:423)

      Attachments

        Issue Links

          Activity

            People

              guozhang Guozhang Wang
              ableegoldman A. Sophie Blee-Goldman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: