Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement]: Enable multi version single step downgrade for KRaft based clusters #10928

Open
MichaelMorrisEst opened this issue Dec 9, 2024 · 1 comment · May be fixed by #10929
Open

[Enhancement]: Enable multi version single step downgrade for KRaft based clusters #10928

MichaelMorrisEst opened this issue Dec 9, 2024 · 1 comment · May be fixed by #10929

Comments

@MichaelMorrisEst
Copy link
Contributor

Related problem

No response

Suggested solution

Strimzi supports multi-version single step upgrade, however downgrades must be handled step by step ensuring the 'to' Strimzi version in each step supports the current Kafka version.
During downgrade an attempt is made to read the Kafka information for the 'from' Kafka version by the 'to' version of the operator. When the 'from' Kafka version is not supported by the 'to' Strimzi version an error will be thrown because the version is unknown. Information such as the metadata version, interbroker protocol message format, log message format version are read from kafka-versions.yaml during the creation of a KafkaVersion object to represent the 'from' kafka version and the error message is generated as it cannot find the information for the unknown version.

However, while this information is important to know for the 'to' version and in upgrade for the 'from' version, it is not important for the 'from' version in the downgrade. Therefore it is possible to support multi-version single step downgrade by simply adding handling to not throw an exception when the 'from' version is not known in a downgrade.

I would like to propose to introduce the necessary handling for encountering an unknown version in downgrade in order to enable single step multi version downgrade for KRaft based clusters.

The downgrade support shall be subject to the limitations of Kafka downgrade, in particular related to the limited support for metadata version downgrade.

Alternatives

No response

Additional context

See proposal for further details

@ppatierno
Copy link
Member

Triaged on 12/12/2024: @MichaelMorrisEst is already working on the corresponding proposal for this, so we'll keep it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants