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

KAFKA-17457 Don't allow ZK migration to start without transactions #17094

Merged
merged 4 commits into from
Sep 6, 2024

Conversation

mumrah
Copy link
Contributor

@mumrah mumrah commented Sep 4, 2024

Since 3.9 is our last 3.x release, it is a likely version for users to be on when doing ZK to KRaft migrations. Since we have made many fixes since the initial preview of migrations in 3.4, we should ensure that users cannot start a migration without certain improvements. Specifically, we do not want any users attempting migrations without the support of KIP-868 Metadata Transactions.

This patch prevents the controller from activating if the log is empty, migrations are enabled, and the bootstrap metadata version does not support transactions.

If the log is not empty on startup, as in the case of a software upgrade, we allow the migration to continue where it left off.

@mumrah mumrah requested a review from cmccabe September 4, 2024 18:56
@mumrah mumrah requested a review from cmccabe September 5, 2024 01:02
@mumrah
Copy link
Contributor Author

mumrah commented Sep 6, 2024

@cmccabe I think the remaining test failures are unrelated

image

Copy link
Contributor

@cmccabe cmccabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mumrah mumrah merged commit d067ed0 into apache:3.9 Sep 6, 2024
1 check failed
mumrah added a commit to mumrah/kafka that referenced this pull request Sep 6, 2024
…pache#17094)

This patch raises the minimum MetadataVersion for migrations to 3.6-IV1 (metadata transactions). This is only enforced on the controller during bootstrap (when the log is empty). If the log is not empty on controller startup, as in the case of a software upgrade, we allow the migration to continue where it left off.

The broker will log an ERROR message if migrations are enabled and the IBP is not at least 3.6-IV1.

Reviewers: Colin P. McCabe <cmccabe@apache.org>
mumrah added a commit to mumrah/kafka that referenced this pull request Sep 6, 2024
…pache#17094)

This patch raises the minimum MetadataVersion for migrations to 3.6-IV1 (metadata transactions). This is only enforced on the controller during bootstrap (when the log is empty). If the log is not empty on controller startup, as in the case of a software upgrade, we allow the migration to continue where it left off.

The broker will log an ERROR message if migrations are enabled and the IBP is not at least 3.6-IV1.

Reviewers: Colin P. McCabe <cmccabe@apache.org>
cmccabe pushed a commit that referenced this pull request Sep 7, 2024
…17094) (#17119)

This patch raises the minimum MetadataVersion for migrations to 3.6-IV1 (metadata transactions). This is only enforced on the controller during bootstrap (when the log is empty). If the log is not empty on controller startup, as in the case of a software upgrade, we allow the migration to continue where it left off.

The broker will log an ERROR message if migrations are enabled and the IBP is not at least 3.6-IV1.

Reviewers: Colin P. McCabe <cmccabe@apache.org>
cmccabe pushed a commit that referenced this pull request Sep 7, 2024
…17094) (#17120)

This patch raises the minimum MetadataVersion for migrations to 3.6-IV1 (metadata transactions). This is only enforced on the controller during bootstrap (when the log is empty). If the log is not empty on controller startup, as in the case of a software upgrade, we allow the migration to continue where it left off.

The broker will log an ERROR message if migrations are enabled and the IBP is not at least 3.6-IV1.

Reviewers: Colin P. McCabe <cmccabe@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants