Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-13204

The subscribedPartitionStates should be thread safe.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • Connectors / Kafka
    • None

    Description

      The subscribedPartitionState should be thread safe. This variable may be modified by the partition discoverer thread while being read by the main thread. So when subscribed partition changes (e.g. partition expansion, new topic matching the pattern is created), a ConcurrentModificationException may be thrown.

      The fix is to use the set from a ConcurrentHashMap instead of a List for subscribedPartitionState.

      Attachments

        Issue Links

          Activity

            People

              becket_qin Jiangjie Qin
              becket_qin Jiangjie Qin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: