[
https://issues.apache.org/jira/browse/FLINK-27195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17521522#comment-17521522
]
Mason Chen commented on FLINK-27195:
------------------------------------
[~martijnvisser] [~renqs] I probably jumped the gun here. In my test, I can
only reproduce this when snapshotState() is invoked with the same checkpointId
twice, which is not possible.
e.g.
# checkpoint id = 1, with no splits
# checkpoint id = 1, with some split assigned.
We can close this.
> KafkaSourceReader offsetsToCommit should be mutable
> ---------------------------------------------------
>
> Key: FLINK-27195
> URL: https://issues.apache.org/jira/browse/FLINK-27195
> Project: Flink
> Issue Type: Bug
> Components: Connectors / Kafka
> Affects Versions: 1.13.6, 1.14.4
> Reporter: Mason Chen
> Assignee: Mason Chen
> Priority: Major
>
> In the KafkaSourceReader, offsetsToCommit should be mutable. Currently, the
> condition that splits is empty initializes the offsets to commit as an
> immutable empty map. However, it is possible to have splits assigned after a
> checkpoint is taken (e.g. discovered topic partitions). Therefore, offsets to
> commit should be mutable.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)