Aleksandr Savonin created FLINK-41821:
-----------------------------------------
Summary: KafkaSource can fail when registering new partitions
while recording offsets for an existing partition
Key: FLINK-41821
URL: https://issues.apache.org/jira/browse/FLINK-41821
Project: Flink
Issue Type: Bug
Components: Connectors / Kafka
Reporter: Aleksandr Savonin
Assignee: Aleksandr Savonin
{{KafkaSourceReaderMetrics}} tracks offsets for each Kafka partition in a
{{{}HashMap{}}}. The split fetcher thread adds an entry when Flink assigns a
new partition. At the same time, the source task thread looks up an already
registered partition to update its {{currentOffset}} as it emits records.
If adding a partition triggers a map resize, the task thread can temporarily
miss the existing entry. This can fail the source task during normal partition
discovery. Recovery then depends on the job’s restart strategy.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)