AHeise commented on a change in pull request #17152:
URL: https://github.com/apache/flink/pull/17152#discussion_r702838686
##########
File path:
flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/sink/KafkaWriter.java
##########
@@ -155,7 +157,7 @@
}
this.kafkaWriterState = new KafkaWriterState(transactionalIdPrefix);
- this.lastCheckpointId =
sinkInitContext.getRestoredCheckpointId().orElse(-1);
+ this.lastCheckpointId =
sinkInitContext.getRestoredCheckpointId().orElse(0);
Review comment:
I added it to `CheckpointIDCounter` which is non-public, but we should
probably expose it some public class if we intend to commit to default = 1
(which I guess quite a few users rely on).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]