apache / apache/pulsar

package still exists after calling `pulsar-admin packages delete`

Open
#14,734 4 comments 1 reaction 1 assignee Claimed by @poorbarcode 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 `admin packages` delete a package, I can still list the deleted package:

```
➜ apache-pulsar-2.9.1 ./bin/pulsar-admin packages delete function://public/default/void@v0.1
"The package 'function://public/default/void@v0.1' deleted successfully"
➜ apache-pulsar-2.9.1 ./bin/pulsar-admin packages list --type function public/default
"void"
➜ apache-pulsar-2.9.1 ./bin/pulsar-admin packages list --type function public/default
"void"
➜ apache-pulsar-2.9.1 ./bin/pulsar-admin packages list --type function public/default
"void"
```

And the result of list version is:
```
➜ apache-pulsar-2.9.1 ./bin/pulsar-admin packages list-versions function://public/default/void
➜ apache-pulsar-2.9.1
```

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
After a package deletion, the `list` should not return the package name

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

**Desktop (please complete the following information):**
- OS: [e.g. iOS]

**Additional context**
Add any other context about the problem here.

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.