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-15009: Handle errors while migrating ACL metadata from snapshot to Zk during DUAL_WRITE mode. #13741

Merged
merged 2 commits into from May 23, 2023

Conversation

akhileshchg
Copy link
Contributor

KAFKA-15009: Handle errors while migrating ACL metadata from snapshot to Zk during DUAL_WRITE mode.

We're missing updating new resourcePatterns while migrating ACL metadata from
snapshot to Zk. Fixed and added a test to verify the correct behavior.

… to Zk during DUAL_WRITE mode.

We're missing updating new resourcePatterns while migrating ACL metadata from
snapshot to Zk. Fixed and added a test to verify the correct behavior.
Copy link
Contributor

@mumrah mumrah left a comment

Choose a reason for hiding this comment

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

The jira talks about ACLs and ClientQuotas.

Were you planning on fixing ClientQuotas in this PR as well? If not, we can go ahead and merge the ACLs fix and work on ClientQuotas separately (maybe @pprovenzano could incorporate that into his test PR?)

@mumrah mumrah self-requested a review May 22, 2023 19:33
@mumrah mumrah self-assigned this May 22, 2023
@mumrah mumrah added the kraft label May 22, 2023
@akhileshchg
Copy link
Contributor Author

The jira talks about ACLs and ClientQuotas.

Were you planning on fixing ClientQuotas in this PR as well? If not, we can go ahead and merge the ACLs fix and work on ClientQuotas separately (maybe @pprovenzano could incorporate that into his test PR?)

I'm not planning to work on the ClientQuotas due to lack of time.

@mumrah
Copy link
Contributor

mumrah commented May 23, 2023

Ok, I split out the client quotas work into KAFKA-15017

Copy link
Contributor

@mumrah mumrah 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 ea6ce3b into apache:trunk May 23, 2023
1 check failed
cmccabe pushed a commit that referenced this pull request May 26, 2023
When loading a snapshot during dual-write mode, we were missing the logic to detect new ACLs that 
had been added on the KRaft side. This patch adds support for finding those new ACLs as well as tests
to verify the correct behavior.

Reviewers: David Arthur <mumrah@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants