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

[LI-HOTFIX] Add federated topic znode create rpc #480

Merged
merged 13 commits into from
Oct 27, 2023
Merged

[LI-HOTFIX] Add federated topic znode create rpc #480

merged 13 commits into from
Oct 27, 2023

Conversation

kehuum
Copy link

@kehuum kehuum commented Oct 20, 2023

This PR adds create federated topic znode rpc that creates a znode entry under /federatedTopics/topicName (value = namespace name).

LI_DESCRIPTION =
In order to make kafka broker understand new acl, it will need to understand the topic name and its corresponding namespace. So when a new kafka topic is created by xmd-service, a corresponding znode will also be created in the above new znode directory so that kafka broker will use the namespace stored to construct the new acl urn correctly.

Added integ-test, verification will be added later after we have added delete federated topic rpcs.

EXIT_CRITERIA = We can deprecate this pr and following delete federated topic rpc pr when all kafka clients have been migrated to xinfra clients and all topic CUDs go through xmd, then we don't need kafka broker to understand both old and new topic acl, it will only need to understand the new acl.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

core/src/main/scala/kafka/server/KafkaApis.scala Outdated Show resolved Hide resolved
core/src/main/scala/kafka/server/KafkaApis.scala Outdated Show resolved Hide resolved
core/src/main/scala/kafka/server/KafkaApis.scala Outdated Show resolved Hide resolved
core/src/main/scala/kafka/zk/ZkData.scala Outdated Show resolved Hide resolved
@kehuum kehuum changed the title add xinfra topic create rpc [LI-HOTFIX] Add federated topic znode create rpc Oct 27, 2023
@kehuum kehuum merged commit 7acb6ed into 3.0-li Oct 27, 2023
25 checks passed
@kehuum kehuum deleted the createRpc branch October 27, 2023 17:49
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