nateab opened a new pull request, #226:
URL: https://github.com/apache/flink-connector-kafka/pull/226
When multiple KafkaSink subtasks run in the same TaskManager, Kafka
auto-generates identical client.id values for producers, causing
InstanceAlreadyExistsException from JMX MBean registration collisions.
This adds client.id.prefix support to KafkaSink, mirroring the existing
KafkaSource implementation (FLINK-28842):
- Add KafkaSinkOptions with CLIENT_ID_PREFIX config option
- Add KafkaSinkBuilder.setClientIdPrefix() API method
- Auto-generate default prefix from transactionalIdPrefix or random value
- Set per-subtask client.id ({prefix}-{subtaskId}) in restoreWriter() before
passing config to writer constructors
--
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]