-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[YSQL] Creating and deleting tables can result in unusable tables #2224
Comments
Related to #1383 |
Hello ! |
Hello, i've just encountered this issue with the latest version, is this on the cards to resolve soon? |
@IS-Josh, just out of curiosity, what kind of circumstances led you to hit this problem? This one seemed like a bug that people might be less likely to encounter in production, and I always love to hear Weird Database Stories. :) |
@aphyr Yes I believe it's a symptom of development. I left out a column and since there wasn't any data in the table and I preferred the column to be in a particular position, I dropped the table instead of altering it with a new column. I created the new table too soon after deleting it and ended up with this issue. I did find an ugly hack that allowed me to continue to use the table name i wanted. I was able to rename the broken table and re-use the table_name, however now i'm stuck with a dead table i cant remove. |
Confirmed that this still happens in 9f4448d (included in v2.1.3), although I only managed to catch a read error, not insert/delete |
Can't reproduce this issue in currently active releases 2.6 and latest master branch after 200+ iterations. |
Jira Link: [DB-406](https://yugabyte.atlassian.net/browse/DB-406)
In 1.3.1.0, performing table creates and deletes concurrently (or perhaps just in rapid succession) can render a table completely unusable; perhaps indefinitely. Inserts fail because of constraint violations (even though every column has a default set!), reads fail because the table doesn't exist,
create if not exists
apparently succeeds, but the table can't be deleted, because it's already being deleted.20190905T143634.000-0400.zip
Deletes:
Reads:
Inserts:
You can reproduce this with Jepsen 60d3417: see the
default-values
test.The text was updated successfully, but these errors were encountered: