Skip to content

[test][broker] Reproduce shared topic permission deletion - #26435

Draft
mattisonchao wants to merge 1 commit into
apache:masterfrom
mattisonchao:test/geo-replication-topic-permissions
Draft

[test][broker] Reproduce shared topic permission deletion#26435
mattisonchao wants to merge 1 commit into
apache:masterfrom
mattisonchao:test/geo-replication-topic-permissions

Conversation

@mattisonchao

Copy link
Copy Markdown
Member

Motivation

In a multi-cluster deployment with separate local metadata stores and a shared configuration metadata store, topic-level permissions are shared even though topic lifecycles remain local. Deleting a topic in one cluster currently removes the shared permission entry while the same-named topic remains available in another cluster.

This draft adds a deterministic regression reproducer before the behavior is corrected.

Modifications

  • Add a two-broker integration test using the existing shared-configuration-store fixture.
  • Create the same topic in both clusters, grant topic-level permissions through one cluster, and verify they are visible through the other.
  • Delete the topic from one cluster, verify the peer topic still exists, and assert that its permissions remain.

Testing

  • gradle :pulsar-broker:checkstyleTest passes.
  • gradle :pulsar-broker:test --tests "org.apache.pulsar.broker.service.OneWayReplicatorUsingGlobalZKTest.testDeletingTopicOnOneClusterKeepsSharedTopicPermissions" -PtestRetryCount=0 reproduces the issue: the peer topic remains, but its permissions are {}.

@mattisonchao
mattisonchao force-pushed the test/geo-replication-topic-permissions branch from 81ec101 to 72e248a Compare August 31, 2026 06:13
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.

1 participant