Skip to content

[Bug] Replicated Subscriptions can be created on non-replicated topics #24090

Open
@shasank112001

Description

@shasank112001

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

OS- Rhel 9
Pulsar Version - 3.3.1
JDK Version - 17

Minimal reproduce step

  1. Create a tenant and namespace with allowed clusters A and B.
  2. Create a topic without enabling geo replication on namespace or topic level.
  3. Connect a consumer on the topic with a replicated subscription on Cluster A.

What did you expect to see?

An error, as a replicated subscription should not be possible on a non-replicated topic.

What did you see instead?

No error, with the subscription created and working. If I use Pulsar-admin to get the replication status on Cluster A, the result is True.
If I switch to pulsar admin on Cluster B, the subscription doesn't exist.

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThe PR fixed a bug or issue reported a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions