[ 
https://issues.apache.org/jira/browse/KAFKA-13827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17522829#comment-17522829
 ] 

David Arthur commented on KAFKA-13827:
--------------------------------------

Thanks for the details [~gargsha]. Were you running 2.8 in ZK mode? 

 

To answer your question, upgrades are still a work in progress. We plan on 
having KRaft to KRaft upgrades complete in 3.3. 
https://issues.apache.org/jira/browse/KAFKA-13410 is the main issue to watch 
for progress there. Once this is complete, we will be able to perform an 
upgrades and downgrades between versions of KRaft with well defined semantics 
and no second roll. More details can be found in 
https://cwiki.apache.org/confluence/display/KAFKA/KIP-778%3A+KRaft+Upgrades

 

ZooKeeper to KRaft migration will come later. We still need to write the KIP 
for that. 

> Data Loss on moving to KRAFT mode from v3.1
> -------------------------------------------
>
>                 Key: KAFKA-13827
>                 URL: https://issues.apache.org/jira/browse/KAFKA-13827
>             Project: Kafka
>          Issue Type: Bug
>          Components: kraft
>            Reporter: Sharad Garg
>            Priority: Major
>
> * Topics created in v2.8/v3.1 that have data are empty (data is deleted) in 
> KRAFT mode. These topics are recreated in KRAFT mode and take some time to 
> show up in listTopics (~90s) after the brokers are up. Below logs are seen in 
> server.logs-
> {code:java}
> [2022-04-07 23:58:49,771] INFO [Controller 1] Created topic 
> kafkaalpha.gargsha.test5 with topic ID APdVTk-9S-uf2q_bm9NpzQ.{nolookups} 
> (org.apache.kafka.controller.ReplicationControlManager)
> [2022-04-07 23:58:49,771] INFO [Controller 1] Created partition 
> kafkaalpha.gargsha.test5-0 with topic ID APdVTk-9S-uf2q_bm9NpzQ and 
> PartitionRegistration(replicas=[2], isr=[2], removingReplicas=[], 
> addingReplicas
> =[], leader=2, leaderEpoch=0, partitionEpoch=0).{nolookups} 
> (org.apache.kafka.controller.ReplicationControlManager){code}
>  * Topic configurations altered in v2.8/v3.1 are not persisted in KRAFT mode.
>  * Topics with no data in v2.8 are deleted when migrated to KRAFT v3.1.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to