Apache SeaTunnel detects Kafka partition expansion in real time without job restart

Apache SeaTunnel streaming jobs, by default, do not consume data from newly added Kafka topic partitions unless the job is restarted, risking data loss or duplicate records. To address this, SeaTunnel provides the partition-discovery.interval-millis parameter, which periodically scans Kafka for new partitions and adds them to the consumer automatically. In a demonstration using SeaTunnel 2.3.12, a Kafka topic named 'ksource' was expanded from 2 to 4 partitions while a streaming job was running. With partition-discovery.interval-millis set to 5000 milliseconds, the job detected the new partitions within seconds and began consuming messages from them without interruption. This approach eliminates the need for a job restart and avoids the associated risks of downtime, missed data, or replayed historical records.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in