Encountering the following fatal error again on 2.21.1.0-b158(This has Jonathan’s fix for https://github.com/yugabyte/yugabyte-db/issues/20638 in a new Cross-DB DDL test. Note: I believe this time it’s occurring on a table named ‘tb_0_temp_old,’ which is likely created internally during the execution of certain DDLs.
So this occurred in 2nd iteration of Step 3. So we did execute a Backup Restore on on database(postgres_20)
Start the cross DB DDL workload which will execute DDLs and DMLs across databases concurrently (20 colocated database and 20 non-colocated database), run this for 20-30 mins
Create a PITR schedule on 10 random database
Start a while loop which executed
a. Note down time for PITR(0)
b. Create a backup of 1 random database
c. Start the cross DB DDL workload and stop it after 10 mins
d. Note down the time for PITR(1)
e. Start the cross DB DDL workload and keep it running
f. Execute PITR on all 10 databases at random times(Between 1-9 sec ago) while the workload is running.
g. Wait for the workload to stop
h. Restore to PITR(1)
i. Validate data
j. Restore to PITR(0) with a probability of 0.6 and validate data
k. Delete the PITR schedule for the backup db (In our case it was postgres_20)
l. Drop the database
m. Restore the backup
n. Create the snapshot schedule for this new DB
List of DDLs in sample app
private static List<List<String>> ddlList = List.of(
List.of("CREATE INDEX idx1 ON ? (k)", "DROP INDEX idx1"),
List.of("CREATE TABLE tempTable1 AS SELECT * FROM ? limit 1000000", "ALTER TABLE tempTable1 RENAME TO tempTable1_new", "DROP TABLE tempTable1_new"),
List.of("CREATE MATERIALIZED VIEW mv1 as SELECT k from ? limit 10000", "REFRESH MATERIALIZED VIEW mv1", "DROP MATERIALIZED VIEW mv1"),
List.of("ALTER TABLE ? ADD newColumn1 TEXT DEFAULT 'dummyString'", "ALTER TABLE ? DROP newColumn1"),
List.of("ALTER TABLE ? ADD newColumn2 TEXT NULL", "ALTER TABLE ? DROP newColumn2"),
List.of("CREATE VIEW view1_? AS SELECT k from ?", "DROP VIEW view1_?"),
List.of("ALTER TABLE ? ADD newColumn3 TEXT DEFAULT 'dummyString'", "ALTER TABLE ? ALTER newColumn3 TYPE VARCHAR(1000)", "ALTER TABLE ? DROP newColumn3"),
List.of("CREATE TABLE tempTable2 AS SELECT * FROM ? limit 1000000", "CREATE INDEX idx2 ON tempTable2(k)", "ALTER TABLE ? ADD newColumn4 TEXT DEFAULT 'dummyString'", "ALTER TABLE tempTable2 ADD newColumn2 TEXT DEFAULT 'dummyString'", "TRUNCATE table ? cascade", "ALTER TABLE ? DROP newColumn4", "ALTER TABLE tempTable2 DROP newColumn2", "DROP INDEX idx2", "DROP TABLE tempTable2"),
List.of("CREATE VIEW view2_? AS SELECT k from ?", "CREATE MATERIALIZED VIEW mv2 as SELECT k from ? limit 10000", "REFRESH MATERIALIZED VIEW mv2", "DROP MATERIALIZED VIEW mv2", "DROP VIEW view2_?")
);
Jira Link: DB-10165
Description
Description Tried on version: 2.21.1.0-b158
Encountering the following fatal error again on 2.21.1.0-b158(This has Jonathan’s fix for https://github.com/yugabyte/yugabyte-db/issues/20638 in a new Cross-DB DDL test. Note: I believe this time it’s occurring on a table named ‘tb_0_temp_old,’ which is likely created internally during the execution of certain DDLs.
Test Details:
So this occurred in 2nd iteration of Step 3. So we did execute a Backup Restore on on database(postgres_20)
List of DDLs in sample app
Logs: http://stress.dev.yugabyte.com/stress_test/e56e3d49-de37-4a93-91d8-fe7493f6c4d1 (Attachments -> Universe logs)
G-flags
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information