yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.83k stars 1.05k forks source link

[YSQL] TEMP TABLE changes system catalog on master #1721

Open d-uspenskiy opened 5 years ago

d-uspenskiy commented 5 years ago

Jira Link: DB-1716 Due to the fact that system catalog is changed on master in case of temp table creation/deletion the following scenario is possible:

d-uspenskiy commented 5 years ago

Some other symptoms also described in #1469

jaki commented 5 years ago

Creating more than one temporary table in a Postgres regress test seems to cause the next regress test in schedule to fail with a read RPC timeout. I suspect that this issue captures the reason. This seems to be an issue on CentOS but a non-issue on Mac. Here is a minimal repro:

If the schedule had any more tests before and after, they wouldn't be affected. Only second is affected because it is right after first.

JDNdeveloper commented 4 years ago

Just wanted to add that it seems like we might have this issue even if the test is last in the schedule. The cleanup code executes some SQL statements which seem to hit the Read RPC timed out error as well.