KAFKA-18941: Do not test 3.3 in upgrade_tests.py#19162
Conversation
The upgrade test in question is not supported for AK 3.3.2 due to a known issue. Previous attempt at solving this left the `metadata.log.dir` empty which leads to the following crash log: ``` ERROR Exiting Kafka due to fatal exception (kafka.Kafka$) org.apache.kafka.common.KafkaException: No `meta.properties` found in (have you run `kafka-storage.sh` to format the directory?) at kafka.server.BrokerMetadataCheckpoint$.$anonfun$getBrokerMetadataAndOfflineDirs$2(BrokerMetadataCheckpoint.scala:172) at scala.collection.Iterator.foreach(Iterator.scala:943) at scala.collection.Iterator.foreach$(Iterator.scala:943) at scala.collection.AbstractIterator.foreach(Iterator.scala:1431) at scala.collection.IterableLike.foreach(IterableLike.scala:74) at scala.collection.IterableLike.foreach$(IterableLike.scala:73) at scala.collection.AbstractIterable.foreach(Iterable.scala:56) at kafka.server.BrokerMetadataCheckpoint$.getBrokerMetadataAndOfflineDirs(BrokerMetadataCheckpoint.scala:161) at kafka.server.KafkaRaftServer$.initializeLogDirs(KafkaRaftServer.scala:184) at kafka.server.KafkaRaftServer.<init>(KafkaRaftServer.scala:61) at kafka.Kafka$.buildServer(Kafka.scala:79) at kafka.Kafka$.main(Kafka.scala:87) at kafka.Kafka.main(Kafka.scala) ```
|
I have tested this locally with the |
|
@chia7712 My apologies, I think I linked to the wrong issue, here is the correct one: Issue is as follows: |
|
@josefk31 thanks for the explanation. let's disable this for now, given how old 3.3 is. If someone wants to put some time into getting 3.3 working, that is welcome as well... but at least we can fix the brokenness for now. |
|
Hmm, our documentation says that upgrades from 3.3 to 4.0 are supported. So, I'm surprised we removed the test for that version. Also, 3.3.1 was released on October 2022 - that's a bit over 2 years old. Not that old from an upgrade source perspective. |
|
Hi @josefk31 , thanks for this patch, I do two things to check this issue. I ran following command without this patch, it pass on local and I can't reproduce this issue.
kafka/core/src/main/scala/kafka/server/KafkaRaftServer.scala Lines 182 to 184 in 0a7ea3f |
|
@TaiJuWu That is very odd; I tested this on confluents infrastructure which is where the failure stems from... Since the same bits of |
yes, using "empty string" can cause the error you attached, but in the e2e, the "empty string" will be filtered, so we actually remove the value of
yes, please share more details to us. If we can't run upgrade/downgrade the server with single folder, we have to update our upgrade docs to include the (new) bugs ... |
|
Hi @josefk31 , any update for this? |

The upgrade test in question is not supported for AK 3.3.2 due to a known issue. Previous attempt at solving this left the
metadata.log.dirempty which leads to the following crash log: