Hi,
I had a quick look at this. What version of the Flink Kafka connector are you 
running?
I looked through recent commits in the Kafka connector and see
https://github.com/apache/flink-connector-kafka/commit/7c112abe8bf78e0cd8a310aaa65b57f6a70ad30a

for PR https://github.com/apache/flink-connector-kafka/pull/156

This looks like a change in behaviour relating to policing the Duplicate 
transactionalIdPrefix for sinks,

   Kind regards, David.

From: Teunissen, F.G.J. (Fred) <fred.teunis...@ing.com.INVALID>
Date: Monday, 19 May 2025 at 13:45
To: dev@flink.apache.org <dev@flink.apache.org>
Subject: [EXTERNAL] Issue with Duplicate transactionalIdPrefix in Flink 2.0 
Kafka Sinks
Hi everyone,

I'm encountering an issue with Flink 2.0 when using the Table API. In previous 
versions (1.19/1.20), I was able to create a Flink job with the following setup:

  *
One Kafka topic-based input table
  *
One Kafka topic-based output table
  *
One statement set with two insert statements, both reading from the input and 
writing to the output table

However, with Flink 2.0, the JobManager generates the following error:
java.lang.IllegalStateException: Found duplicate transactionalIdPrefix for 
multiple Kafka sinks: null. Transactional id prefixes need to be unique. You 
may experience memory leaks without fixing this.

Is this expected behavior in Flink 2.0, or should it still be possible to use 
the same setup without encountering this error?

You can find a reproducible example of this issue on 
GitHub<https://github.com/FredTing/transactional-id-issue>.

To reproduce the error, you can run the bash script ./build-and-start-job.sh​. 
It will compile the job and start a Docker environment running the job. It also 
opens up the Flink dashboard, where you can find the failing job (after a few 
seconds).

Additionally, when you use 1.20​ or 1.19​ as an argument to the script, the job 
runs successfully.

Any insights or suggestions would be greatly appreciated!

Best regards,
Fred Teunissen

-----------------------------------------------------------------
ATTENTION:
The information in this e-mail is confidential and only meant for the intended 
recipient. If you are not the intended recipient, don't use or disclose it in 
any way. Please let the sender know and delete the message immediately.
-----------------------------------------------------------------

Unless otherwise stated above:

IBM United Kingdom Limited
Registered in England and Wales with number 741598
Registered office: Building C, IBM Hursley Office, Hursley Park Road, 
Winchester, Hampshire SO21 2JN

Reply via email to