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

roachtest: schemachange/mixed-versions-compat failed #97576

Closed
cockroach-teamcity opened this issue Feb 23, 2023 · 5 comments · Fixed by #97769
Closed

roachtest: schemachange/mixed-versions-compat failed #97576

cockroach-teamcity opened this issue Feb 23, 2023 · 5 comments · Fixed by #97769
Assignees
Labels
branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot. release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Milestone

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Feb 23, 2023

roachtest.schemachange/mixed-versions-compat failed with artifacts on master @ e028ce5b14505dfd17ef8b13001c0ab8ac811e3c:

validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE sc2.typ_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t, t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t1_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t2_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t3_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t4_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP VIEW v_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE test CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP TABLE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser1 CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser3_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW x, y_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW y, x_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_1
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_10
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_11
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_12
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_13
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_14
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_15
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_16
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_17
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_18
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_2
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_3
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_4
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_5
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_6
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_7
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_8
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_9
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE db_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE test CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP TABLE db.kv_0, W230223 16:55:24.581810 1 sql/schemachanger/scplan/plan.go:122  [-] 1  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230223 16:55:24.588003 1 sql/schemachanger/scplan/plan.go:122  [-] 2  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230223 16:55:24.593982 1 sql/schemachanger/scplan/plan.go:122  [-] 3  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230223 16:55:24.599962 1 sql/schemachanger/scplan/plan.go:122  [-] 4  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230223 16:55:24.605882 1 sql/schemachanger/scplan/plan.go:122  [-] 5  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230223 16:55:24.611867 1 sql/schemachanger/scplan/plan.go:122  [-] 6  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230223 16:55:24.617807 1 sql/schemachanger/scplan/plan.go:122  [-] 7  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230223 16:55:24.623878 1 sql/schemachanger/scplan/plan.go:122  [-] 8  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230223 16:55:24.629952 1 sql/schemachanger/scplan/plan.go:122  [-] 9  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230223 16:55:24.635978 1 sql/schemachanger/scplan/plan.go:122  [-] 10  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
ERROR: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
Failed running "debug declarative-corpus-validate"

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_fs=ext4 , ROACHTEST_localSSD=true , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

/cc @cockroachdb/sql-schema

This test on roachdash | Improve this report!

Jira issue: CRDB-24767

@cockroach-teamcity cockroach-teamcity added branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot. release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. labels Feb 23, 2023
@cockroach-teamcity cockroach-teamcity added this to the 23.1 milestone Feb 23, 2023
@blathers-crl blathers-crl bot added the T-sql-schema-deprecated Use T-sql-foundations instead label Feb 23, 2023
@cockroach-teamcity
Copy link
Member Author

roachtest.schemachange/mixed-versions-compat failed with artifacts on master @ 0d3393b0623a5c258b25725f64f3689e2f54667b:

validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE sc2.typ_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t, t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t1_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t2_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t3_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t4_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP VIEW v_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE test CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP TABLE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser1 CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser3_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW x, y_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW y, x_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_1
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_10
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_11
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_12
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_13
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_14
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_15
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_16
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_17
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_18
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_2
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_3
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_4
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_5
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_6
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_7
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_8
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_9
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE db_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE test CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP TABLE db.kv_0, W230224 16:30:31.178657 1 sql/schemachanger/scplan/plan.go:122  [-] 1  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230224 16:30:31.184757 1 sql/schemachanger/scplan/plan.go:122  [-] 2  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230224 16:30:31.190810 1 sql/schemachanger/scplan/plan.go:122  [-] 3  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230224 16:30:31.196833 1 sql/schemachanger/scplan/plan.go:122  [-] 4  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230224 16:30:31.203035 1 sql/schemachanger/scplan/plan.go:122  [-] 5  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230224 16:30:31.209062 1 sql/schemachanger/scplan/plan.go:122  [-] 6  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230224 16:30:31.215107 1 sql/schemachanger/scplan/plan.go:122  [-] 7  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230224 16:30:31.221093 1 sql/schemachanger/scplan/plan.go:122  [-] 8  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230224 16:30:31.227135 1 sql/schemachanger/scplan/plan.go:122  [-] 9  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230224 16:30:31.233195 1 sql/schemachanger/scplan/plan.go:122  [-] 10  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
ERROR: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
Failed running "debug declarative-corpus-validate"

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_fs=ext4 , ROACHTEST_localSSD=true , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

roachtest.schemachange/mixed-versions-compat failed with artifacts on master @ fca69b046f6389fbc4d2b6db428e27a5d7277773:

validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE sc2.typ_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t, t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t1_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t2_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t3_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t4_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP VIEW v_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE test CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP TABLE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser1 CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser3_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW x, y_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW y, x_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_1
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_10
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_11
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_12
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_13
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_14
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_15
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_16
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_17
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_18
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_2
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_3
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_4
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_5
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_6
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_7
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_8
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_9
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE db_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE test CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP TABLE db.kv_0, W230225 16:51:21.926236 1 sql/schemachanger/scplan/plan.go:122  [-] 1  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230225 16:51:21.932470 1 sql/schemachanger/scplan/plan.go:122  [-] 2  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230225 16:51:21.938600 1 sql/schemachanger/scplan/plan.go:122  [-] 3  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230225 16:51:21.944681 1 sql/schemachanger/scplan/plan.go:122  [-] 4  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230225 16:51:21.950704 1 sql/schemachanger/scplan/plan.go:122  [-] 5  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230225 16:51:21.956816 1 sql/schemachanger/scplan/plan.go:122  [-] 6  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230225 16:51:21.963057 1 sql/schemachanger/scplan/plan.go:122  [-] 7  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230225 16:51:21.969182 1 sql/schemachanger/scplan/plan.go:122  [-] 8  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230225 16:51:21.975214 1 sql/schemachanger/scplan/plan.go:122  [-] 9  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230225 16:51:21.981286 1 sql/schemachanger/scplan/plan.go:122  [-] 10  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
ERROR: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
Failed running "debug declarative-corpus-validate"

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_fs=ext4 , ROACHTEST_localSSD=true , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

This test on roachdash | Improve this report!

@cockroach-teamcity
Copy link
Member Author

roachtest.schemachange/mixed-versions-compat failed with artifacts on master @ 39c06b5a438c01c93ffbfeeefe702d3f9b620eaf:

validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE sc2.typ_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t, t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t1_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t2_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t3_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t4_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP VIEW v_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE test CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP TABLE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser1 CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser3_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW x, y_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW y, x_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_1
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_10
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_11
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_12
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_13
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_14
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_15
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_16
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_17
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_18
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_2
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_3
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_4
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_5
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_6
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_7
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_8
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_9
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE db_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE test CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP TABLE db.kv_0, W230226 16:41:04.702463 1 sql/schemachanger/scplan/plan.go:122  [-] 1  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230226 16:41:04.708689 1 sql/schemachanger/scplan/plan.go:122  [-] 2  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230226 16:41:04.714863 1 sql/schemachanger/scplan/plan.go:122  [-] 3  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230226 16:41:04.720974 1 sql/schemachanger/scplan/plan.go:122  [-] 4  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230226 16:41:04.727088 1 sql/schemachanger/scplan/plan.go:122  [-] 5  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230226 16:41:04.733190 1 sql/schemachanger/scplan/plan.go:122  [-] 6  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230226 16:41:04.739283 1 sql/schemachanger/scplan/plan.go:122  [-] 7  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230226 16:41:04.745350 1 sql/schemachanger/scplan/plan.go:122  [-] 8  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230226 16:41:04.751423 1 sql/schemachanger/scplan/plan.go:122  [-] 9  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230226 16:41:04.764639 1 sql/schemachanger/scplan/plan.go:122  [-] 10  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
ERROR: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
Failed running "debug declarative-corpus-validate"

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_fs=ext4 , ROACHTEST_localSSD=true , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

This test on roachdash | Improve this report!

@fqazi fqazi self-assigned this Feb 27, 2023
@cockroach-teamcity
Copy link
Member Author

roachtest.schemachange/mixed-versions-compat failed with artifacts on master @ 13c58f621519794e775b7cfc4d8b557bc99eeca0:

validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE sc2.typ_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t, t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t1_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t2_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t3_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t4_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP TYPE t_0
validated TestLogic_drop_type_TestLogic_drop_type_DROP VIEW v_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP DATABASE test CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP TABLE a CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser1 CASCADE_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW testuser3_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW x, y_0
validated TestLogic_drop_view_TestLogic_drop_view_DROP VIEW y, x_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_1
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_10
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_11
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_12
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_13
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_14
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_15
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_16
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_17
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_18
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_2
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_3
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_4
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_5
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_6
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_7
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_8
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_ALTER TABLE db.kv ALTER PRIMARY KEY USING COLUMNS (k)_9
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE db_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE defaultdb CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP DATABASE test CASCADE_0
validated TestLogic_gc_job_mixed_TestLogic_gc_job_mixed_DROP TABLE db.kv_0, W230227 16:54:06.500731 1 sql/schemachanger/scplan/plan.go:122  [-] 1  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230227 16:54:06.506721 1 sql/schemachanger/scplan/plan.go:122  [-] 2  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230227 16:54:06.512692 1 sql/schemachanger/scplan/plan.go:122  [-] 3  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230227 16:54:06.518677 1 sql/schemachanger/scplan/plan.go:122  [-] 4  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230227 16:54:06.524674 1 sql/schemachanger/scplan/plan.go:122  [-] 5  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230227 16:54:06.530670 1 sql/schemachanger/scplan/plan.go:122  [-] 6  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230227 16:54:06.536652 1 sql/schemachanger/scplan/plan.go:122  [-] 7  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230227 16:54:06.542626 1 sql/schemachanger/scplan/plan.go:122  [-] 8  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230227 16:54:06.548651 1 sql/schemachanger/scplan/plan.go:122  [-] 9  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230227 16:54:06.554671 1 sql/schemachanger/scplan/plan.go:122  [-] 10  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
ERROR: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
Failed running "debug declarative-corpus-validate"

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_fs=ext4 , ROACHTEST_localSSD=true , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

This test on roachdash | Improve this report!

fqazi added a commit to fqazi/cockroach that referenced this issue Feb 27, 2023
Previously, it was possible in a mixed version state
to cleanup constraints (foreign keys, unique without indexes,
function bodies) when dropping columns. This would cause
down level nodes to fail at planning seeing unsupported
status transitions. To address this, this patch adds a version gate
to prevent dropping any of these objects when cleaning up a column.

Fixes: cockroachdb#97576

Release note: None
fqazi added a commit to fqazi/cockroach that referenced this issue Feb 27, 2023
Previously, it was possible in a mixed version state
to cleanup constraints (foreign keys, unique without indexes,
function bodies) when dropping columns. This would cause
down level nodes to fail at planning seeing unsupported
status transitions. To address this, this patch adds a version gate
to prevent dropping any of these objects when cleaning up a column.

Fixes: cockroachdb#97576

Release note: None
@cockroach-teamcity
Copy link
Member Author

roachtest.schemachange/mixed-versions-compat failed with artifacts on master @ b0e5507f74c07e13cfda8cda8b9079b457a9f37d:

W230228 12:46:32.022639 1 sql/schemachanger/scplan/plan.go:122  [-] 3  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230228 12:46:32.028769 1 sql/schemachanger/scplan/plan.go:122  [-] 4  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230228 12:46:32.034813 1 sql/schemachanger/scplan/plan.go:122  [-] 5  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230228 12:46:32.040915 1 sql/schemachanger/scplan/plan.go:122  [-] 6  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230228 12:46:32.047058 1 sql/schemachanger/scplan/plan.go:122  [-] 7  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230228 12:46:32.053136 1 sql/schemachanger/scplan/plan.go:122  [-] 8  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230228 12:46:32.059305 1 sql/schemachanger/scplan/plan.go:122  [-] 9  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230228 12:46:32.065451 1 sql/schemachanger/scplan/plan.go:122  [-] 10  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
W230228 12:46:32.280448 1 sql/schemachanger/scplan/plan.go:122  [-] 11  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.284599 1 sql/schemachanger/scplan/plan.go:122  [-] 12  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.288681 1 sql/schemachanger/scplan/plan.go:122  [-] 13  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.292756 1 sql/schemachanger/scplan/plan.go:122  [-] 14  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.296829 1 sql/schemachanger/scplan/plan.go:122  [-] 15  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.300947 1 sql/schemachanger/scplan/plan.go:122  [-] 16  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.305027 1 sql/schemachanger/scplan/plan.go:122  [-] 17  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.309059 1 sql/schemachanger/scplan/plan.go:122  [-] 18  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.313166 1 sql/schemachanger/scplan/plan.go:122  [-] 19  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.317293 1 sql/schemachanger/scplan/plan.go:122  [-] 20  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 3}
W230228 12:46:32.321390 1 sql/schemachanger/scplan/plan.go:122  [-] 21  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.325430 1 sql/schemachanger/scplan/plan.go:122  [-] 22  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.329415 1 sql/schemachanger/scplan/plan.go:122  [-] 23  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.333464 1 sql/schemachanger/scplan/plan.go:122  [-] 24  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.337872 1 sql/schemachanger/scplan/plan.go:122  [-] 25  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.341941 1 sql/schemachanger/scplan/plan.go:122  [-] 26  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.345958 1 sql/schemachanger/scplan/plan.go:122  [-] 27  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.349961 1 sql/schemachanger/scplan/plan.go:122  [-] 28  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.354003 1 sql/schemachanger/scplan/plan.go:122  [-] 29  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.358351 1 sql/schemachanger/scplan/plan.go:122  [-] 30  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 228, ConstraintID: 8}
W230228 12:46:32.627150 1 sql/schemachanger/scplan/plan.go:122  [-] 31  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.633059 1 sql/schemachanger/scplan/plan.go:122  [-] 32  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.638982 1 sql/schemachanger/scplan/plan.go:122  [-] 33  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.644877 1 sql/schemachanger/scplan/plan.go:122  [-] 34  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.650719 1 sql/schemachanger/scplan/plan.go:122  [-] 35  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.656583 1 sql/schemachanger/scplan/plan.go:122  [-] 36  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.662490 1 sql/schemachanger/scplan/plan.go:122  [-] 37  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.668442 1 sql/schemachanger/scplan/plan.go:122  [-] 38  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.674354 1 sql/schemachanger/scplan/plan.go:122  [-] 39  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.680198 1 sql/schemachanger/scplan/plan.go:122  [-] 40  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 12 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 5}
W230228 12:46:32.685962 1 sql/schemachanger/scplan/plan.go:122  [-] 41  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
W230228 12:46:32.691684 1 sql/schemachanger/scplan/plan.go:122  [-] 42  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
W230228 12:46:32.697394 1 sql/schemachanger/scplan/plan.go:122  [-] 43  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
W230228 12:46:32.703145 1 sql/schemachanger/scplan/plan.go:122  [-] 44  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
W230228 12:46:32.709068 1 sql/schemachanger/scplan/plan.go:122  [-] 45  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
W230228 12:46:32.714858 1 sql/schemachanger/scplan/plan.go:122  [-] 46  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
W230228 12:46:32.720585 1 sql/schemachanger/scplan/plan.go:122  [-] 47  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
W230228 12:46:32.726436 1 sql/schemachanger/scplan/plan.go:122  [-] 48  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
W230228 12:46:32.732188 1 sql/schemachanger/scplan/plan.go:122  [-] 49  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
W230228 12:46:32.738137 1 sql/schemachanger/scplan/plan.go:122  [-] 50  failed building declarative schema changer plan in PostCommitNonRevertiblePhase (rollback=false) for ALTER TABLE with error: invalid execution plan: final status is VALIDATED instead of ABSENT at index 11 for adding UniqueWithoutIndexConstraint:{DescID: 167, ConstraintID: 4}
ERROR: invalid execution plan: final status is VALIDATED instead of ABSENT at index 15 for adding ForeignKeyConstraint:{DescID: 110, ConstraintID: 2, ReferencedDescID: 107}
Failed running "debug declarative-corpus-validate"

Parameters: ROACHTEST_cloud=gce , ROACHTEST_cpu=4 , ROACHTEST_encrypted=false , ROACHTEST_ssd=0

Help

See: roachtest README

See: How To Investigate (internal)

This test on roachdash | Improve this report!

fqazi added a commit to fqazi/cockroach that referenced this issue Feb 28, 2023
Previously, it was possible in a mixed version state
to cleanup constraints (foreign keys, unique without indexes,
function bodies) when dropping columns. This would cause
down level nodes to fail at planning seeing unsupported
status transitions. To address this, this patch adds a version gate
to prevent dropping any of these objects when cleaning up a column.

Fixes: cockroachdb#97576

Release note: None
craig bot pushed a commit that referenced this issue Feb 28, 2023
97769: sql/schemachanger: version gate dropping constraints / functions r=fqazi a=fqazi

Previously, it was possible in a mixed version state to cleanup constraints (foreign keys, unique without indexes, function bodies) when dropping columns. This would cause down level nodes to fail at planning seeing unsupported status transitions. To address this, this patch adds a version gate to prevent dropping any of these objects when cleaning up a column.

Fixes: #97576

Release note: None

Co-authored-by: Faizan Qazi <[email protected]>
@craig craig bot closed this as completed in 626483a Feb 28, 2023
@exalate-issue-sync exalate-issue-sync bot added T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions) and removed T-sql-schema-deprecated Use T-sql-foundations instead labels May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-master Failures and bugs on the master branch. C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot. release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
None yet
2 participants