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 failed ["parent schema is dropped" error while running helper query] #136065

Open
cockroach-teamcity opened this issue Nov 23, 2024 · 5 comments
Labels
B-runtime-assertions-enabled branch-release-24.3.0-rc C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Nov 23, 2024

Note: This build has runtime assertions enabled. If the same failure was hit in a run without assertions enabled, there should be a similar failure without this message. If there isn't one, then this failure is likely due to an assertion violation or (assertion) timeout.

roachtest.schemachange/mixed-versions failed with artifacts on release-24.3.0-rc @ ef2ebe96f3a26fd6d6716e2ec4a0c8c6fe0fb567:

(mixedversion.go:732).Run: mixed-version test failure while running step 23 (run "run schemachange workload and validation in mixed version"): full command output in run_084248.262736819_n4_COCKROACHRANDOMSEED5.log: COMMAND_PROBLEM: exit status 1
test artifacts and logs in: /artifacts/schemachange/mixed-versions/run_1

Parameters:

  • ROACHTEST_arch=amd64
  • ROACHTEST_cloud=gce
  • ROACHTEST_coverageBuild=false
  • ROACHTEST_cpu=4
  • ROACHTEST_encrypted=false
  • ROACHTEST_runtimeAssertionsBuild=true
  • ROACHTEST_ssd=0
Help

See: roachtest README

See: How To Investigate (internal)

See: Grafana

Same failure on other branches

/cc @cockroachdb/sql-foundations

This test on roachdash | Improve this report!

Jira issue: CRDB-44848

@cockroach-teamcity cockroach-teamcity added B-runtime-assertions-enabled branch-release-24.3.0-rc 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) labels Nov 23, 2024
@cockroach-teamcity
Copy link
Member Author

Note: This build has runtime assertions enabled. If the same failure was hit in a run without assertions enabled, there should be a similar failure without this message. If there isn't one, then this failure is likely due to an assertion violation or (assertion) timeout.

roachtest.schemachange/mixed-versions failed with artifacts on release-24.3.0-rc @ 330209cefef4383a9d67ce7d86e2d3a9794ccd4f:

(mixedversion.go:732).Run: mixed-version test failure while running step 24 (run "run schemachange workload and validation in mixed version"): full command output in run_073837.854625854_n4_COCKROACHRANDOMSEED4.log: COMMAND_PROBLEM: exit status 1
test artifacts and logs in: /artifacts/schemachange/mixed-versions/run_1

Parameters:

  • ROACHTEST_arch=amd64
  • ROACHTEST_cloud=gce
  • ROACHTEST_coverageBuild=false
  • ROACHTEST_cpu=4
  • ROACHTEST_encrypted=false
  • ROACHTEST_runtimeAssertionsBuild=true
  • ROACHTEST_ssd=0
Help

See: roachtest README

See: How To Investigate (internal)

See: Grafana

Same failure on other branches

This test on roachdash | Improve this report!

@spilchen
Copy link
Contributor

Looking at the first two occurances. The errors are slightly different. The first one fails this way:

 {
   "sql": "ALTER FUNCTION schema_w1_1086.udf_w3_1321(public._enum_w1_63, public._enum_w2_681, public.enum_w1_63, public.enum_w2_681, schema_w0_22._composite_w0_669, schema_w0_22._composite_w4_325, schema_w0_22.composite_w0_669, schema_w0_22.composite_w4_325, schema_w4_15._composite_w1_1116, schema_w4_15._composite_w1_850, schema_w4_15._composite_w2_775, schema_w4_15._enum_w0_52, schema_w4_15._enum_w3_1036, schema_w4_15._enum_w3_898, schema_w4_15._enum_w4_962, schema_w4_15.composite_w1_1116, schema_w4_15.composite_w1_850, schema_w4_15.composite_w2_775, schema_w4_15.enum_w0_52, schema_w4_15.enum_w3_1036, schema_w4_15.enum_w3_898, schema_w4_15.enum_w4_962, schema_w3_257._composite_w1_388, \"char\", BOOL, BOX2D, BPCHAR) SET SCHEMA schema_w2_1560"
  }
 ],
 "expectedExecErrors": "",
 "expectedCommitErrors": "",
 "message": "***UNEXPECTED ERROR; Received an unexpected execution error.: ERROR: function udf_w3_1321(enum_w1_63[],enum_w2_681[],enum_w1_63,enum_w2_681,composite_w0_669[],composite_w4_325[],composite_w0_669,composite_w4_325,composite_w1_1116[],composite_w1_850[],composite_w2_775[],enum_w0_52[],enum_w3_1036[],enum_w3_898[],enum_w4_962[],composite_w1_1116,composite_w1_850,composite_w2_775,enum_w0_52,enum_w3_1036,enum_w3_898,enum_w4_962,composite_w1_388[],\"char\",bool,box2d,char) does not exist (SQLSTATE 42883)",

And the second one fails this way:

{
 "workerId": 2,
 "clientTimestamp": "07:39:07.55144",
 "ops": [
  "BEGIN",
  {
   "sql": "CREATE TYPE schema_w3_635.composite_w2_734 AS (ozjvte BIT(0), wc BOOL, jc BOOL, hpdc INT8)"
  }
 ],
 "expectedExecErrors": "",
 "expectedCommitErrors": "",
 "message": "***UNEXPECTED ERROR; Received an unexpected execution error.: ERROR: at or near \")\": syntax error: length for type bit must be at least 1 (SQLSTATE 22023)",

Both of the tests were running 24.2.4. The related fix (#130889) first appears in v24.2.5, which was just released. Once #135608 is merged, this mixed version test will use v24.2.5 and should not encounter this issue.

@spilchen spilchen changed the title roachtest: schemachange/mixed-versions failed roachtest: schemachange/mixed-versions failed [bpchar related issue] Nov 26, 2024
@spilchen spilchen changed the title roachtest: schemachange/mixed-versions failed [bpchar related issue] roachtest: schemachange/mixed-versions failed [BIT(0) related issue] Nov 26, 2024
@spilchen spilchen added P-3 Issues/test failures with no fix SLA and removed release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. labels Nov 26, 2024
@rafiss
Copy link
Collaborator

rafiss commented Nov 27, 2024

should be fixed by #135608

@cockroach-teamcity
Copy link
Member Author

Note: This build has runtime assertions enabled. If the same failure was hit in a run without assertions enabled, there should be a similar failure without this message. If there isn't one, then this failure is likely due to an assertion violation or (assertion) timeout.

roachtest.schemachange/mixed-versions failed with artifacts on release-24.3.0-rc @ 330209cefef4383a9d67ce7d86e2d3a9794ccd4f:

(mixedversion.go:732).Run: mixed-version test failure while running step 29 (run "run schemachange workload and validation in mixed version"): full command output in run_093324.669465525_n4_COCKROACHRANDOMSEED7.log: COMMAND_PROBLEM: exit status 1
test artifacts and logs in: /artifacts/schemachange/mixed-versions/run_1

Parameters:

  • ROACHTEST_arch=amd64
  • ROACHTEST_cloud=gce
  • ROACHTEST_coverageBuild=false
  • ROACHTEST_cpu=4
  • ROACHTEST_encrypted=false
  • ROACHTEST_runtimeAssertionsBuild=true
  • ROACHTEST_ssd=0
Help

See: roachtest README

See: How To Investigate (internal)

See: Grafana

Same failure on other branches

This test on roachdash | Improve this report!

@rafiss
Copy link
Collaborator

rafiss commented Nov 27, 2024

The latest failure is

E241127 09:34:03.529615 1 workload/cli/run.go:599  [-] 3  ***UNEXPECTED ERROR; Failed to generate a random operation: failed generating operation: createTable: CollectOne: CollectOneRow: Query: SELECT EXISTS (
E241127 09:34:03.529615 1 workload/cli/run.go:599  [-] 3 +	SELECT table_name
E241127 09:34:03.529615 1 workload/cli/run.go:599  [-] 3 +    FROM information_schema.tables 
E241127 09:34:03.529615 1 workload/cli/run.go:599  [-] 3 +   WHERE table_schema = $1
E241127 09:34:03.529615 1 workload/cli/run.go:599  [-] 3 +     AND table_name = $2
E241127 09:34:03.529615 1 workload/cli/run.go:599  [-] 3 +   ) Args: [schema_w3_1143 table_w0_1267]: ERROR: internal error: relation "table_w0_1223" (786): parent schema "schema_w0_712" (509) is dropped (SQLSTATE XX000)

this is similar to the error in #136090

@rafiss rafiss removed the P-3 Issues/test failures with no fix SLA label Nov 27, 2024
@rafiss rafiss changed the title roachtest: schemachange/mixed-versions failed [BIT(0) related issue] roachtest: schemachange/mixed-versions failed [parent schema is dropped while running helper query] Nov 27, 2024
@rafiss rafiss changed the title roachtest: schemachange/mixed-versions failed [parent schema is dropped while running helper query] roachtest: schemachange/mixed-versions failed ["parent schema is dropped" error while running helper query] Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-runtime-assertions-enabled branch-release-24.3.0-rc C-test-failure Broken test (automatically or manually discovered). O-roachtest O-robot Originated from a bot. T-sql-foundations SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Projects
None yet
Development

No branches or pull requests

3 participants