NIFI - ConsumeKafka to PublishKafka doesn't keep the order of the messages in the destination topic
Hello ,
I'm using NIFI to replicate 250 million messages between Kafka topics.
The problem is that NIFI replicates messages in a non-sequential order, resulting in the destination topic storing messages differently than the source topic.
for example
source topic - partition 0
offset:5 key:a value:v1
offset:6 key:a value:v2
offset:7 key:a value:v3
destination topic - partition 0
offset:5 key:a value:v2
offset:6 key:a value:v1
offset:7 key:a value:v3
The topics are configured with a cleanup policy: compact.
I'm using ConsumeKafka and PublishKafka processors to replicate topics.







