Skip to content

Conversation

viktorsomogyi
Copy link
Contributor

@viktorsomogyi viktorsomogyi commented Oct 2, 2025

When using the zookeeper-security-migration tool without the '–enable.path.check' option, the script not only updates the ACLs for the existing znodes, but also creates any non-existing ones (with the ACL options specified) using null values based on the list defined in ZkData.SecureRootPaths. This is especially problematic for the /migration znode as the current logic only checks for the existence of the znode and later the migration process will hang when it tries to parse the null value over and over again.

In summary, the migration cannot be completed if the zookeeper-security-migration script was run previously, and the only workaround is to manually remove the /migration znode in such cases. I propose a simple fix to circumvent the manual step by recreating the /migration znode if it contains a null value.

@viktorsomogyi
Copy link
Contributor Author

This is a reupload of #20128 as that one has the JDK8 build stuck for some reason (while it works locally).
No review required.

@viktorsomogyi viktorsomogyi added ci-approved do-not-merge PRs that are only open temporarily and should not be merged and removed ci-approved labels Oct 2, 2025
Copy link

@kada2004 kada2004 left a comment

Choose a reason for hiding this comment

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

look good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-approved do-not-merge PRs that are only open temporarily and should not be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants