Hi Team,
I got replies from kafka forum and able to understand & resolve steps for upgrade.
Thanks a lot kafka forum.
We have tried kafka cluster rolling upgrade by doing the version changes (CURRENT_KAFKA_VERSION - 0.10.0, CURRENT_MESSAGE_FORMAT_VERSION - 0.10.0 and upgraded respective version 0.10.2) in upgraded confluent package 3.2.2 and observed the in-sync replicas are coming up immediately & also, the preferred leaders are coming up after version bump post sync.
As per my understanding, the in-sync replicas & leader election happening quickly as the new data getting published while upgrade is getting written and synced using upgraded package libraries (0.10.2).
Also, observed some records failed to produce due to error,
kafka-rest error response -
{"offsets":[{"partition":null,"offset":null,"error_code":50003,"error":"This server is not the leader for that topic-partition."}],"key_schema_id":1542,"value_schema_id":1541}
Exception in log file -
org.apache.kafka.common.errors.NotLeaderForPartitionException: This server is not the leader for that topic-partition.
To resolve the above error, we have override properties acks=-1 (default, 1) retries=3 (default, 0) for kafka rest producer config (kafka-rest.properties) and getting some duplicate events in topic. Its better to have duplicate records rather than data loss.
Thanks,
Yogesh