Skip to content

Force delete subscription is not working #9477

@munir131

Description

@munir131

Describe the bug
There is provision in admin API to force delete subscription. But, when I am passing force=true in querystring I am getting response with a 204 status code. But, when checking the subscription list, that subscription is still there.

To Reproduce
Steps to reproduce the behavior:

  1. Run pulsar
  2. Create producer & consumer on that topic. Here I used pulsar-client-go 2.3.0
  3. Now call Delete subscription. e.g localhost:8080/admin/v2/persistent/public/default/topic-1/subscription/my-subscription-name?force=true
  4. Now check using call to list subscription. e.g localhost:8080/admin/v2/persistent/public/default/topic-1/subscriptions

Expected behavior
It should delete subscription or return error instead of 204 status code in case of error

Screenshots
delete-subscription
get-subscriptions

Desktop (please complete the following information):

  • OS: NA - Official docker image

Additional context
Pulsar version: 2.7.0
Env: Docker
Type: Standalone

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions