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

[Bug] After deleting and rebuilding tenants with the same name, the old user still exists #1452

Closed
Kree0 opened this issue Aug 25, 2023 · 1 comment
Assignees
Labels
type/bug Something isn't working

Comments

@Kree0
Copy link
Contributor

Kree0 commented Aug 25, 2023

Describe the bug

version: cnosdb 2.3.2, revision 6b6dec4
mode: singleton

To Reproduce

create tenant if not exists tenant1;
create user if not exists user1;
alter tenant tenant1 add user user1 as owner;
drop tenant if exists tenant1;
create tenant if not exists tenant1;

Then execute alter tenant tenant1 add user user1 as owner; will show error:

422 Unprocessable Entity, details: {"error_code":"030007","error_message":"The user 19812744502392072301122323264259877424 already exists"}

Expected behavior

No response

Additional context

No response

@yukkit yukkit added the type/bug Something isn't working label Sep 7, 2023
lutengda added a commit to lutengda/cnosdb that referenced this issue Oct 18, 2023
lutengda added a commit to lutengda/cnosdb that referenced this issue Oct 18, 2023
lutengda added a commit that referenced this issue Oct 19, 2023
* fix: drop tenant not drop members bug(#1452)

* ci: add test case for #1452

* refactor: move drop members and roles to meta

* refactor: be in common use drop database
@Kree0
Copy link
Contributor Author

Kree0 commented Oct 19, 2023

Fixed.

@Kree0 Kree0 closed this as completed Oct 19, 2023
ZuoTiJia pushed a commit that referenced this issue Nov 20, 2023
* fix: drop tenant not drop members bug(#1452)

* ci: add test case for #1452

* refactor: move drop members and roles to meta

* refactor: be in common use drop database

(cherry picked from commit 68d0a77)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants