Open cockroach-teamcity opened 10 months ago
pkg/sql/schemachanger/schemachanger_test.TestSchemaChangeComparator_alter_table failed with artifacts on master @ f4f29428d592b5ee2335b0bc65960aecd8d3e47a:
comparator.go:131: Executing "ALTER TABLE t_cannot_rename_constraint_over_index RENAME CONSTRAINT v_unique TO idx_v"
comparator.go:131: Executing "ALTER TABLE t_cannot_rename_constraint_over_index RENAME CONSTRAINT t_cannot_rename_constraint_over_index_pkey TO idx_v"
comparator.go:131: Executing "CREATE TABLE unique_without_index_error (a INT8)"
comparator.go:131: Executing "SET experimental_enable_unique_without_index_constraints = true"
comparator.go:131: Executing "CREATE TABLE unique_without_index (a INT8, b INT8 UNIQUE WITHOUT INDEX, c INT8 UNIQUE, d INT8 UNIQUE WITHOUT INDEX, e INT8, UNIQUE WITHOUT INDEX (b), UNIQUE WITHOUT INDEX (a, b), UNIQUE WITHOUT INDEX (c), UNIQUE WITHOUT INDEX (d, e))"
comparator.go:131: Executing "CREATE TABLE uwi_child (d INT8 REFERENCES unique_without_index (d), e INT8, CONSTRAINT fk_d_e FOREIGN KEY (d, e) REFERENCES unique_without_index (d, e), CONSTRAINT fk_e_d FOREIGN KEY (e, d) REFERENCES unique_without_index (e, d))"
comparator.go:131: Executing "ALTER TABLE unique_without_index ADD COLUMN f INT8; ALTER TABLE unique_without_index ADD CONSTRAINT my_unique_f UNIQUE WITHOUT INDEX (f); ALTER TABLE unique_without_index ADD CONSTRAINT my_partial_unique_f UNIQUE WITHOUT INDEX (f) WHERE f > 0"
comparator.go:131: Executing "ALTER TABLE unique_without_index ADD CONSTRAINT bad_partial_unique UNIQUE WITHOUT INDEX (f) WHERE g > 0"
comparator.go:131: Executing "INSERT INTO unique_without_index(f) VALUES (1), (1)"
comparator.go:131: Executing "INSERT INTO unique_without_index(e, f) VALUES (1, 1), (1, 2)"
comparator.go:131: Executing "ALTER TABLE unique_without_index ADD CONSTRAINT my_unique_e UNIQUE WITHOUT INDEX (e)"
comparator.go:131: Executing "ALTER TABLE unique_without_index ADD CONSTRAINT my_unique_e UNIQUE WITHOUT INDEX (e) NOT VALID; ALTER TABLE unique_without_index ADD CONSTRAINT my_unique_e2 UNIQUE WITHOUT INDEX (e) NOT VALID"
comparator.go:245: Comparator testing framework modifies line "ALTER TABLE unique_without_index VALIDATE CONSTRAINT my_unique_e" to "" (for legacy) and to "" (for declarative)
comparator.go:133: Executing "ALTER TABLE unique_without_index VALIDATE CONSTRAINT my_unique_e" with modifications: "" for legacy; "" for declarative
comparator.go:131: Executing "DELETE FROM unique_without_index WHERE (e = 1) AND (f = 1); ALTER TABLE unique_without_index VALIDATE CONSTRAINT my_unique_e"
comparator.go:131: Executing "ALTER TABLE unique_without_index VALIDATE CONSTRAINT unique_b; ALTER TABLE unique_without_index VALIDATE CONSTRAINT unique_a_b; ALTER TABLE unique_without_index VALIDATE CONSTRAINT unique_without_index_c_key"
comparator.go:131: Executing "CREATE TABLE unique_without_index_partial (a INT8, b INT8, c INT8); INSERT INTO unique_without_index_partial VALUES (1, 1, 1), (2, 2, 2), (1, 3, -3), (2, -2, -2), (NULL, 4, 4), (NULL, 5, 5)"
comparator.go:131: Executing "ALTER TABLE unique_without_index_partial ADD CONSTRAINT uniq_a_1 UNIQUE WITHOUT INDEX (a) WHERE (b > 0) OR (c > 0)"
comparator.go:131: Executing "SELECT usage_count > $constraint_violations_before\nFROM crdb_internal.feature_usage\nWHERE feature_name = 'sql.schema_changer.errors.constraint_violation';\n"
comparator.go:131: Executing "SELECT count(usage_count) FROM crdb_internal.feature_usage WHERE (feature_name = 'sql.schema_changer.errors.uncategorized') AND (usage_count >= 1)"
comparator.go:131: Executing "ALTER TABLE unique_without_index_partial ADD CONSTRAINT uniq_a_1 UNIQUE WITHOUT INDEX (a) WHERE (b > 0) OR (c > 0) NOT VALID"
comparator.go:245: Comparator testing framework modifies line "ALTER TABLE unique_without_index_partial VALIDATE CONSTRAINT uniq_a_1" to "" (for legacy) and to "" (for declarative)
comparator.go:133: Executing "ALTER TABLE unique_without_index_partial VALIDATE CONSTRAINT uniq_a_1" with modifications: "" for legacy; "" for declarative
comparator.go:131: Executing "DELETE FROM unique_without_index_partial WHERE ((a = 1) AND (b = 3)) AND (c = -3); ALTER TABLE unique_without_index_partial VALIDATE CONSTRAINT uniq_a_1"
comparator.go:131: Executing "ALTER TABLE unique_without_index_partial ADD CONSTRAINT uniq_a_2 UNIQUE WITHOUT INDEX (a) WHERE (b > 0) OR (c > 0)"
comparator.go:131: Executing "SHOW CONSTRAINTS FROM unique_without_index"
comparator.go:131: Executing "ALTER TABLE unique_without_index RENAME COLUMN a TO aa"
comparator.go:131: Executing "ALTER TABLE unique_without_index RENAME CONSTRAINT unique_b_2 TO unique_b_3"
comparator.go:131: Executing "ALTER TABLE unique_without_index RENAME CONSTRAINT unique_b TO unique_b_1"
comparator.go:131: Executing "ALTER TABLE unique_without_index RENAME CONSTRAINT unique_b TO unique_b_2"
comparator.go:131: Executing "SHOW CONSTRAINTS FROM unique_without_index"
comparator.go:131: Executing "ALTER TABLE unique_without_index DROP CONSTRAINT unique_b"
comparator.go:131: Executing "ALTER TABLE unique_without_index DROP CONSTRAINT unique_b_2"
comparator.go:131: Executing "ALTER TABLE unique_without_index DROP CONSTRAINT my_unique_e2"
comparator.go:131: Executing "SHOW CONSTRAINTS FROM unique_without_index"
comparator.go:131: Executing "ALTER TABLE unique_without_index DROP COLUMN b"
comparator.go:131: Executing "SHOW CONSTRAINTS FROM unique_without_index"
comparator.go:131: Executing "SHOW CONSTRAINTS FROM uwi_child"
comparator.go:131: Executing "ALTER TABLE unique_without_index DROP COLUMN d"
comparator.go:131: Executing "ALTER TABLE unique_without_index DROP COLUMN d CASCADE"
comparator.go:131: Executing "SHOW CONSTRAINTS FROM unique_without_index"
comparator.go:131: Executing "SHOW CONSTRAINTS FROM uwi_child"
comparator.go:131: Executing "CREATE TABLE t54629 (c INT8 NOT NULL, UNIQUE (c)); ALTER TABLE t54629 ADD CONSTRAINT pk PRIMARY KEY (c); INSERT INTO t54629 VALUES (1); DELETE FROM t54629 WHERE c = 1"
comparator.go:131: Executing "BEGIN TRANSACTION; CREATE TABLE t45985 (a INT8); ALTER TABLE t45985 ADD COLUMN b INT8; COMMIT TRANSACTION"
comparator.go:131: Executing "SELECT count(descriptor_id) FROM (SELECT json_array_elements_text(crdb_internal.pb_to_json('cockroach.sql.jobs.jobspb.Payload', value)->'descriptorIds')::INT8 AS descriptor_id FROM system.job_info WHERE info_key = 'legacy_payload') WHERE descriptor_id = ('test.public.t45985'::REGCLASS)::INT8"
comparator.go:131: Executing "CREATE TABLE t_col_drop (a INT8)"
comparator.go:592: statement "ROLLBACK TRANSACTION" failed with declarative schema changer (but succeeded with legacy schema changer): pq: there is no transaction in progress
panic.go:523: -- test log scope end --
test logs left over in: /artifacts/tmp/_tmp/b8c66a7706bbaaf1e8c5fcd559a6e764/logTestSchemaChangeComparator_alter_table1292247436
--- FAIL: TestSchemaChangeComparator_alter_table (901.53s)
See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)
pkg/sql/schemachanger/schemachanger_test.TestSchemaChangeComparator_alter_table failed with artifacts on master @ 71aaf665b6348b9b6e40f38a669bb68f83ea97cd:
Help
See also: [How To Investigate a Go Test Failure \(internal\)](https://cockroachlabs.atlassian.net/l/c/HgfXfJgM)
/cc @cockroachdb/sql-foundations
This test on roachdash | Improve this report!
Jira issue: CRDB-32901