-
Notifications
You must be signed in to change notification settings - Fork 15.4k
KAFKA-14805 KRaft controller supports pre-migration mode #13407
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
Merged
Merged
Changes from 17 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
1d2999f
Add pre-migration state for the KRaft controller
mumrah 64e9df9
Add integration test for pre-migration
mumrah 4d1a9cb
Add migration state to MetadataImage
mumrah 078fcdf
checkstyle
mumrah 96eff83
Merge remote-tracking branch 'origin/trunk' into KAFKA-14805-pre-migr…
mumrah c9c3bfc
Only write ZkMigrationStateRecord if we've seen one
mumrah f9608cf
Rename some things
mumrah 5fa9671
Merge remote-tracking branch 'origin/trunk' into KAFKA-14805-pre-migr…
mumrah 8f4b5aa
Merge remote-tracking branch 'origin/trunk' into KAFKA-14805-pre-migr…
mumrah e57f996
Make sure we don't start a migration when we're in KRaft mode
mumrah da3f9dc
Add ZkMigrationState metric
mumrah cef8e6a
Fix unit tests
mumrah 4c68c5d
Handle the case of updating metadata.version
mumrah 35165fb
Handle PRE_MIGRATION record when upgrading from 3.4
mumrah 2314a52
Merge remote-tracking branch 'origin/trunk' into KAFKA-14805-pre-migr…
mumrah b3f52b0
Better log message in ZkMigrationControlManager
mumrah 2cf031b
Merge remote-tracking branch 'origin/trunk' into KAFKA-14805-pre-migr…
mumrah b52e5a1
Remove ControllerMetrics
mumrah 6f70a14
Merge remote-tracking branch 'origin/trunk' into KAFKA-14805-pre-migr…
mumrah ce8fe6c
Move ZkMigrationControlManager into FeatureControlManager
mumrah 71727a6
cleanup
mumrah f56fc6f
Merge remote-tracking branch 'origin/trunk' into KAFKA-14805-pre-migr…
mumrah 308798b
PR feedback
mumrah 301296b
More PR feedback
mumrah a49ddc6
Merge remote-tracking branch 'origin/trunk' into KAFKA-14805-pre-migr…
mumrah 7b93271
Add transition to POST_MIGRATION
mumrah 5ae5363
Update system tests for recent changes
mumrah c183eef
Fix some logic in the migration driver
mumrah 3d8f3b9
Merge remote-tracking branch 'origin/trunk' into KAFKA-14805-pre-migr…
mumrah 5107fb4
Fix some tests
mumrah 8923c4d
PR feedback
mumrah e43d924
Fix broker count in test
mumrah 816e976
Fix unit test
mumrah bb6093e
Add another test case for old MV
mumrah 15608e4
Don't allow KRaft brokers to register during pre-migration
mumrah a4422d6
Fix one more activation case, add tests
mumrah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also explain in this comment why the migration does not proceed beyond premigration (I assume it's because we're waiting for brokers and we don't have any due to brokers = 0)