Skip to content

Kafka Connect: Add config for transactional ID prefix#11780

Merged
bryanck merged 1 commit into
apache:mainfrom
beyonnex-io:kafka-connect-configurable-transactional-prefix
Mar 14, 2025
Merged

Kafka Connect: Add config for transactional ID prefix#11780
bryanck merged 1 commit into
apache:mainfrom
beyonnex-io:kafka-connect-configurable-transactional-prefix

Conversation

@thjaeckle

Copy link
Copy Markdown
Contributor

In a Kafka setup where strict ACLs are applied, e.g. based on a certain PREFIX for Transactional IDs, it is important to have the prefix configurable.

Currently, it is the name of the "Channel" (e.g. "worker" or "coordinator" for the 2 extending subclasses):

Channel(
String name,
String consumerGroupId,
IcebergSinkConfig config,
KafkaClientFactory clientFactory,
SinkTaskContext context) {
this.controlTopic = config.controlTopic();
this.connectGroupId = config.connectGroupId();
this.context = context;
String transactionalId = name + config.transactionalSuffix();

This PR introduces an optional prefix to add - which by default is empty so that the behaviour is not changed to the current behaviour.

@thjaeckle

Copy link
Copy Markdown
Contributor Author

Any feedback for this PR?
Is something missing?

/cc @bryanck

@bryanck

bryanck commented Jan 7, 2025

Copy link
Copy Markdown
Contributor

I'll take a look this week, thanks for your patience!

@thjaeckle

Copy link
Copy Markdown
Contributor Author

@bryanck any news?
Would be nice to see it included in the upcoming 1.8.0

@thjaeckle

Copy link
Copy Markdown
Contributor Author

@bryanck trying to ping once more - it has been quite some time now since you wanted to have a look

I would really want to avoid to fork the iceberg connector just to get it working when using ACLs for Kafka transaction ids.

@RobertK83

Copy link
Copy Markdown

Hey - I am also interested in this - any update?

@nastra nastra requested a review from bryanck March 14, 2025 13:56
@thjaeckle thjaeckle force-pushed the kafka-connect-configurable-transactional-prefix branch from bcc442d to 27b131d Compare March 14, 2025 14:24
@bryanck

bryanck commented Mar 14, 2025

Copy link
Copy Markdown
Contributor

Thanks for the contribution @thjaeckle , and sorry for the delay!

@bryanck bryanck merged commit 03fc1ae into apache:main Mar 14, 2025
@bryanck bryanck changed the title Kafka Connect: Add the configuration option to provide a transactional id prefix to use Kafka Connect: Add config for transactional ID prefix Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants