KAFKA-18346: Fix e2e TestKRaftUpgrade from v3.3.2#18386
KAFKA-18346: Fix e2e TestKRaftUpgrade from v3.3.2#18386chia7712 merged 7 commits intoapache:trunkfrom
Conversation
|
|
Hi @ijuma , I also hope this PR can bring your attention and I have written the root cause. |
|
It seems like we are testing that we can upgrade from 3.3 with a single log directory - is that right? If so, that makes sense to me. |
|
We are testing DOWNGRADE from 4.0 to 3.3 and it ONLY work for single folder but in KRAFT mode it should often be three folders. The error throw What #13130 do is split ZK mode and KRAFT mode, and if we work on KRAFT mode we only check clusterID and nodeID to avoid compatibility issue. By the way, ZK mode we check nodeID + clusterID + directoryID so we have such issue. |
|
@TaiJuWu I feel that approach has two issue.
|
|
To mitigate the 3.3 issue, we could add a flag to the @TaiJuWu what are your thoughts? You have identified the root cause, so it would be excellent if you could complete this PR 😃 |
This is the issue about this fix and is not related to the root cause, I would like to discuss the root cause about this issue but I still very appreciate for your review.
After discussion offline with @chia7712 , the main question becomes should we limit the downgrade path to single folder in our system test or we want to remove this version directly? The former means we still support limited downgrade and the latter means we don't give downgrade promission about v3.3. cc @ijuma @mumrah @cmccabe |
|
reopen for discussion. |
|
@TaiJuWu you're correct. 3.3 had some issues, and we didn't backport the fix (#13130). However, 3.3 is an outdated release, and we don't need to prioritize "how to downgrade multi-folders Kraft to 3.3." I believe this is a rare use case with limited benefits. In this PR, we can revise the test case to ensure a path exists for downgrading to 3.3. I think this is a sufficient approach." |
I prefer to include 3.3 in the upgrading/downgrading tests, as we already know how to successfully execute these scenarios, right? |
ad847fa to
f40321b
Compare
| configs.update(override_configs) | ||
|
|
||
| prop_file = self.render_configs(configs) | ||
| filtered_configs = {k: v for k, v in configs.items() if v not in [None, ""]} |
There was a problem hiding this comment.
Please add this behavior to the document (line#258)
| - Finally, validate that every message acked by the producer was consumed by the consumer. | ||
| """ | ||
|
|
||
| # Due to 3.3 compatability issue we need to set one folder |
There was a problem hiding this comment.
Could you please revise the comment with more details?
There was a problem hiding this comment.
All comments are address, please take a look.
chia7712
left a comment
There was a problem hiding this comment.
LGTM
run the e2e tests/kafkatest/tests/core/kraft_upgrade_test.py on my local with this patch. all pass
Due to an issue with handling folders in Kafka version 3.3.2 (see apache#13130), this end-to-end test requires using a single folder for upgrade/downgrade scenarios involving 3.3.2. Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
Due to an issue with handling folders in Kafka version 3.3.2 (see #13130), this end-to-end test requires using a single folder for upgrade/downgrade scenarios involving 3.3.2. Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
Due to an issue with handling folders in Kafka version 3.3.2 (see apache#13130), this end-to-end test requires using a single folder for upgrade/downgrade scenarios involving 3.3.2. Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
Due to an issue with handling folders in Kafka version 3.3.2 (see apache#13130), this end-to-end test requires using a single folder for upgrade/downgrade scenarios involving 3.3.2. Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
Due to an issue with handling folders in Kafka version 3.3.2 (see apache#13130), this end-to-end test requires using a single folder for upgrade/downgrade scenarios involving 3.3.2. Reviewers: Ismael Juma <ismael@juma.me.uk>, Chia-Ping Tsai <chia7712@gmail.com>
jira: https://issues.apache.org/jira/browse/KAFKA-18346
This failure related to #13130
see #18386 (comment)
Committer Checklist (excluded from commit message)