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-17146 Include note to remove migration znode #620

Open
wants to merge 2 commits into
base: asf-site
Choose a base branch
from

Conversation

mumrah
Copy link
Contributor

@mumrah mumrah commented Aug 1, 2024

When reverting the ZK migration, we must also remove the /migration ZNode in order to allow the migration to be re-attempted in the future.

Comment on lines +4108 to +4111
of the brokers can become the new old-style controller. Additionally, run
<code>get /migration</code> followed by <code>rmr /migration</code> to clear the
migration state from ZooKeeper. This will allow you to re-attempt the migration
in the future. The data read from "/migration" can be useful for debugging.
Copy link
Contributor

Choose a reason for hiding this comment

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

We also need to update it in L4147 (Migrating brokers to KRaft row)

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, I don't notice this comment. apache/kafka#16770 is merged. I will sync the changes back to kafka repo if it needs

Copy link
Contributor

Choose a reason for hiding this comment

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

I have commented the corresponding JIRA to understand in which state the user rollbacks the cluster to restart the migration because I tried this scenario more times without deleting the /migration znode and it worked fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @showuon, added the second mention. I wonder why we have this duplication? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder why we have this duplication?

it seems we list all directions for reverting for each migration phase. That is a bit verbose, but they are useful. However, it is weird to use "table format" to display so much texts. Maybe we should to a bit refactor for it. Also, the same direction can have its hyperlink to be shared in different migration phase.

Copy link
Contributor

Choose a reason for hiding this comment

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

@mjsax
Copy link
Member

mjsax commented Sep 4, 2024

@mumrah -- can this PR be merged?

@ppatierno
Copy link
Contributor

ppatierno commented Sep 25, 2024

It's still not clear to me why this removal is needed. I ran migration then rollback then migration and so on several times without the need for deleting such znode.

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.

6 participants