Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
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
- is duplicated by
-
FLINK-9349 KafkaConnector Exception while fetching from multiple kafka topics
- Resolved