apache / apache/pulsar

After using ns-isolation-policy, topics unload is invalid, only namespace unload is valid

Open
#14,927 6 comments 0 reactions 1 assignee Claimed by @Technoboy- View on GitHub
lifecycle/stale Stale type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

**Describe the bug**
After using ns-isolation-policy, topics unload is invalid, only namespace unload is valid

**To Reproduce**
Steps to reproduce the behavior:
```
1. ./bin/pulsar-admin ns-isolation-policy set --auto-failover-policy-type min_available \ --auto-failover-policy-params min_limit=1,usage_threshold=80 \ --namespaces zcola_20220329/test --primary 7.32.133.237.* \ pulsar-19990 policy-zcola_qos-test
2. ./bin/pulsar-admin topics partitioned-lookup persistent://zcola_20220329/test/test
3. ./bin/pulsar-admin topics unload zcola_20220329/test/test **not work**
./bin/pulsar-admin topics partitioned-lookup persistent://zcola_20220329/test/test
"persistent://zcola_20220329/test/test-partition-0 pulsar://7.32.133.235:6650"
"persistent://zcola_20220329/test/test-partition-1 pulsar://7.32.133.235:6650"
"persistent://zcola_20220329/test/test-partition-2 pulsar://7.32.133.235:6650"
5. ./bin/pulsar-admin namespaces unload zcola_20220329/test **it work**
./bin/pulsar-admin topics partitioned-lookup persistent://zcola_20220329/test/test
"persistent://zcola_20220329/test/test-partition-0 pulsar://7.32.133.237:6650"
"persistent://zcola_20220329/test/test-partition-1 pulsar://7.32.133.237:6650"
"persistent://zcola_20220329/test/test-partition-2 pulsar://7.32.133.237:6650"
```

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- pulsar 2.9.1

**Additional context**
Ralated #14728

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.