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

Creating and deleting tables can result in unusable tables #2224

Open
aphyr opened this issue Sep 5, 2019 · 1 comment

Comments

@aphyr
Copy link

commented Sep 5, 2019

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:

2019-09-05 14:42:44,392{GMT}    INFO    [jepsen worker 3] jepsen.util: 11048    :info    :drop-table    nil    [:psql-exception "ERROR: Not found: The object was deleted: Started deleting at 2019-09-05 18:38:29 UTC"]

Reads:

INFO [2019-09-05 14:40:02,017] jepsen worker 0 - jepsen.util 3475    :info    :read    nil    [:psql-exception "ERROR: Not found: Error loading table with oid 16386 in database with oid 12453: The table '000030a5000030008000000000000000.foo' does not exist"]

Inserts:

INFO [2019-09-05 14:41:22,649] jepsen worker 4 - jepsen.util 7579    :info    :insert    nil    [:psql-exception "ERROR: null value in column \"k\" violates not-null constraint\n  Detail: Failing row contains (null, null)."]

You can reproduce this with Jepsen 60d3417: see the default-values test.

lein run test --os debian --version 1.3.1.0 -w ysql/default-value --time-limit 300

@aphyr aphyr changed the title Creating and deleting tables can result in permanently unusable tables Creating and deleting tables can result in unusable tables Sep 5, 2019

@ttyusupov ttyusupov added this to To do in Jepsen Testing via automation Sep 10, 2019

@ttyusupov ttyusupov added the area/sql label Sep 10, 2019

@ndeodhar

This comment has been minimized.

Copy link
Contributor

commented Sep 11, 2019

Related to #1383

@ndeodhar ndeodhar assigned mbautin and unassigned ndeodhar Sep 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants
You can’t perform that action at this time.