slachiewicz opened a new pull request, #369: URL: https://github.com/apache/flink-connector-kafka/pull/369
## What is the purpose of the change Backport of #314 to `v5.0` for [FLINK-40626](https://issues.apache.org/jira/browse/FLINK-40626), requested in https://github.com/apache/flink-connector-kafka/pull/314#pullrequestreview-5169469050. #314 is still in review; this branch will follow any further changes to it. ## Brief change log Adapted to `v5.0`: `ExactlyOnceKafkaWriter` keeps the branch's `getAdminClient`. `KafkaSinkRecoveryITCase`, which covers the id reservation end to end on `main`, does not exist on `v5.0`; here the reservation is covered by `ProducerPoolImplITCase` and `ExactlyOnceKafkaWriterITCase`. `AGENTS.md` does not exist on `v5.0`. ## Verifying this change Verified: `KafkaWriterStateSerializerTest`, `TransactionAbortStrategyImplTest`, `TransactionAbortStrategyContextImplTest`, `AdminUtilsTest`, `KafkaCommitterTest`, `ProducerPoolImplITCase`, `ExactlyOnceKafkaWriterITCase` and `KafkaSinkITCase` on JDK 17 with Flink 2.1.0 → 124 tests, 0 failures. ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency, including `kafka.version` or `flink.version`): no - The public API, i.e., is any changed class annotated with `@Public(Evolving)` or `@Experimental`, or are the Table options or the PyFlink wrappers changed: no; every changed class is `@Internal` - Checkpointed state, its serializers, or exactly-once delivery (splits, enumerator state, writer state, committables, transactions): yes. Every exactly-once sink now writes `KafkaWriterState` version 3, which earlier connector versions cannot read, so rolling back needs a savepoint taken before the upgrade. Writer state from this branch's earlier releases (version 2) restores unchanged - The per-record code paths (split reader, record emitter, writer, serialization schemas; performance sensitive): no ## Documentation - Does this pull request introduce a new feature? no - If yes, how is the feature documented? not applicable - If the docs changed, are both `docs/content` and `docs/content.zh` updated? not applicable --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (please specify the tool below) Generated-by: Claude Code 2.1.330 -- 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]
