Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix zk-node leak of admin path #12972

Merged
merged 4 commits into from
Nov 29, 2021

Conversation

wolfstudy
Copy link
Member

Signed-off-by: xiaolongran xiaolongran@tencent.com

Fixes #12968

Motivation

When we run follow command:

bin/pulsar-admin tenants delete test2

the zk-node of /admin/partitioned-topics and /admin/local-policies wil not remove, casued by zk-node leak.

Modifications

  • clear tenant zk-node of /admin/partitioned-topics/
  • clear tenant zk-node of /admin/local-policies/
  • add test case

Signed-off-by: xiaolongran <xiaolongran@tencent.com>
@wolfstudy wolfstudy added the doc-not-needed Your PR changes do not impact docs label Nov 25, 2021
@wolfstudy wolfstudy added this to the 2.10.0 milestone Nov 25, 2021
@wolfstudy wolfstudy self-assigned this Nov 25, 2021
@wolfstudy
Copy link
Member Author

/pulsarbot run-failure-checks

@wolfstudy
Copy link
Member Author

/pulsarbot run-failure-checks

Signed-off-by: xiaolongran <xiaolongran@tencent.com>
Signed-off-by: xiaolongran <xiaolongran@tencent.com>
@wolfstudy wolfstudy merged commit 86fe7d2 into apache:master Nov 29, 2021
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request Nov 29, 2021
Signed-off-by: xiaolongran <xiaolongran@tencent.com>


Fixes apache#12968 



### Motivation

When we run follow command:

```
bin/pulsar-admin tenants delete test2
```

the zk-node of `/admin/partitioned-topics` and `/admin/local-policies` wil not remove, casued by zk-node leak.

### Modifications

- clear tenant zk-node of `/admin/partitioned-topics/` 
- clear tenant zk-node of `/admin/local-policies/`
- add test case
fxbing pushed a commit to fxbing/pulsar that referenced this pull request Dec 19, 2021
Signed-off-by: xiaolongran <xiaolongran@tencent.com>


Fixes apache#12968 



### Motivation

When we run follow command:

```
bin/pulsar-admin tenants delete test2
```

the zk-node of `/admin/partitioned-topics` and `/admin/local-policies` wil not remove, casued by zk-node leak.

### Modifications

- clear tenant zk-node of `/admin/partitioned-topics/` 
- clear tenant zk-node of `/admin/local-policies/`
- add test case
@codelipenghui codelipenghui added release/2.9.4 release/2.8.5 type/bug The PR fixed a bug or issue reported a bug area/broker labels Nov 30, 2022
congbobo184 pushed a commit that referenced this pull request Nov 30, 2022
Signed-off-by: xiaolongran <xiaolongran@tencent.com>

Fixes #12968

When we run follow command:

```
bin/pulsar-admin tenants delete test2
```

the zk-node of `/admin/partitioned-topics` and `/admin/local-policies` wil not remove, casued by zk-node leak.

- clear tenant zk-node of `/admin/partitioned-topics/`
- clear tenant zk-node of `/admin/local-policies/`
- add test case

(cherry picked from commit 86fe7d2)
congbobo184 pushed a commit to congbobo184/pulsar that referenced this pull request Dec 1, 2022
Signed-off-by: xiaolongran <xiaolongran@tencent.com>

Fixes apache#12968

When we run follow command:

```
bin/pulsar-admin tenants delete test2
```

the zk-node of `/admin/partitioned-topics` and `/admin/local-policies` wil not remove, casued by zk-node leak.

- clear tenant zk-node of `/admin/partitioned-topics/`
- clear tenant zk-node of `/admin/local-policies/`
- add test case

(cherry picked from commit 86fe7d2)
@congbobo184 congbobo184 added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.5 release/2.9.4 type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Zk-node Leak] When delete tenant, zk-node leak
5 participants