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: UNDROP TABLE results in table exists exception and DROP TABLE results in unknown table exception #17311

Open
1 of 2 tasks
bcbjohan opened this issue Jan 16, 2025 · 0 comments
Labels
C-bug Category: something isn't working

Comments

@bcbjohan
Copy link

Search before asking

  • I had searched in the issues and found no similar issues.

Version

v1.2.680-p2

What's Wrong?

Hi

We have a few table which seem to exist in a purgatory state.

When we try to run UNDROP TABLE gold.illicit_activity_summary; it results in the following message.
SQL Error: Failover Retry Error executing query after 0 failover retry: SQL: UNDROP TABLE gold.illicit_activity_summary Query failed: QueryErrors{code=2308, message=Undrop Table 'illicit_activity_summary' already exists} cause: null

The above exception also occurs when trying to create the table via normal CREATE TABLE and CTAS DDL statements.

Then when we try to run DROP TABLE gold.illicit_activity_summary; it results in this message.
SQL Error: Failover Retry Error executing query after 0 failover retry: SQL: DROP TABLE gold.illicit_activity_summary Query failed: QueryErrors{code=1025, message=Unknown table 'illicit_activity_summary'} cause: null

We currently have 3 tables where this is an issue.

How to Reproduce?

We have not been successful in trying to reproduce this error on demand.
So far it seems to be affecting only 3 tables.

When looking at the system.tables_with_history the affected tables are not present.

We are running 3 meta nodes (4 vcpu, 16 GB memory, ARM64 architecture).
7 query nodes (16 vCpu, 256GB memory, ARM64 architecture)

I have attached a snippet of the debug logs of a node where we tried to run the UNDROP statement.

databend_debug.log

What else can I send to assist in the diagnosis of an issue like this?

Are you willing to submit PR?

  • Yes I am willing to submit a PR!
@bcbjohan bcbjohan added the C-bug Category: something isn't working label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant