apache / apache/pulsar

Deleting the Partitioned topic still available in the topic list

Open
#22,771 0 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Read release policy

- [X] 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

3.2.3

### Minimal reproduce step

root@localhost:/usr/local/pulsar# bin/pulsar-admin topics delete-partitioned-topic persistent://public/default/topic
2024-05-23T14:31:10,250+0000 [AsyncHttpClient-7-2] WARN org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/persistent/public/default/topic/partitions?force=false&deleteSchema=true] Failed to perform http delete request: javax.ws.rs.NotFoundException: HTTP 404 {"reason":"Partitioned Topic persistent://public/default/topic not found"}
Partitioned Topic persistent://public/default/topic not found
Reason: Partitioned Topic persistent://public/default/topic not found

### What did you expect to see?

Partitioned Topics need to removed

### What did you see instead?

Shows topics not found

### Anything else?

Need to create the Partitioned topic with same name

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem with the `bin/pulsar-admin topics delete-partitioned-topic` command and verify whether the partitioned topic remains in the topic list. Trace the delete operation from this admin entry point; done means deletion succeeds, the topic disappears, and the same name can be created again.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.