apache / apache/pulsar

Topic admin operations doesn't work well for non-persistent partitioned topics

Open
#10,615 4 comments 0 reactions 1 assignee Claimed by @wangshaojie4039 View on GitHub
lifecycle/stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 22h
Merged PRs (30d)
142

Description

**Describe the bug**
See changes of `pulsar-broker/src/test/java/org/apache/pulsar/broker/admin/AdminApiTest.java` in https://github.com/apache/pulsar/pull/10601 for details.

1. `getList` would return 0 even if a partitioned topic was created
2. `deleteSubscription` may throw `NotFoundException`
3. `getSubscriptions` may return an empty list
4. the `subscriptions` field of what `getPartitionedStats` returns may contain nothing

**To Reproduce**
The `AdminApiTest` wouldn't pass if check for `isPersistent` was removed.

**Expected behavior**
After check for persistent domain was removed, `AdminApiTest` should pass.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.