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]An error message was generated while deleting tenants #1302

Closed
lutengda opened this issue Jun 25, 2023 · 3 comments
Closed

[BUG]An error message was generated while deleting tenants #1302

lutengda opened this issue Jun 25, 2023 · 3 comments
Assignees
Labels
type/bug Something isn't working
Milestone

Comments

@lutengda
Copy link
Collaborator

Describe the bug

version: 4b16931
Single node startup
I created a tenant and a user, and gave the user the owner rights of the tenant. Here is my SQL statement:

CREATE TENANT tenant_a;
CREATE USER user_a;
ALTER TENANT tenant_a ADD USER user_a AS owner;

Then I query this table and find that there is already a tenant that I created:
image
Then I try to delete this tenant, this is an error occurred, this is the SQL statement:

DROP TENANT tenant_a;

An error occurred after executing the delete statement:

422 Unprocessable Entity, details: {"error_code":"030028","error_message":"Decode message error reason: invalid type: null, expected a boolean at line 1 column 10"}

At this point, I checked again and found that the tenant was no longer available:
image

To Reproduce

No response

Expected behavior

Although the tenant deletion was successful, the error message should not appear

Additional context

No response

@lutengda lutengda added the type/bug Something isn't working label Jun 25, 2023
@bartliu827
Copy link
Contributor

WriteCommand::DropTenant: Encoding and decoding format mismatch

@lutengda lutengda assigned lutengda and bartliu827 and unassigned lutengda Jun 25, 2023
@roseboy-liu
Copy link
Contributor

add to e2e testcase

@lutengda
Copy link
Collaborator Author

lutengda commented Jul 3, 2023

Delete tenant no error, this issue is closed

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

4 participants