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 [enum value is not yet public (SQLSTATE XXUUU)] #124839

Closed
cockroach-teamcity opened this issue May 30, 2024 · 3 comments
Assignees
Labels
branch-release-24.1 Used to mark GA and release blockers, technical advisories, and bugs for 24.1 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)
Milestone

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented May 30, 2024

roachtest.schemachange/mixed-versions failed with artifacts on release-24.1 @ 827b522c24d903ec130ea4aa48dd0af6687eaf6d:

(mixedversion.go:594).Run: mixed-version test failure while running step 15 (run "run schemachange workload and validation in mixed version"): full command output in run_062852.573881555_n4_COCKROACHRANDOMSEED1.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_metamorphicBuild=false
  • 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-39098

@cockroach-teamcity cockroach-teamcity added branch-release-24.1 Used to mark GA and release blockers, technical advisories, and bugs for 24.1 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 May 30, 2024
@cockroach-teamcity cockroach-teamcity added this to the 24.1 milestone May 30, 2024
@annrpom
Copy link
Contributor

annrpom commented May 30, 2024

"workerId": 0,
 "clientTimestamp": "06:29:17.749859",
 "ops": [
  "BEGIN",
  {
   "sql": "ALTER TYPE schema_w2_132.enum_w0_154 DROP VALUE 'dffs'"
  },
  {
   "sql": "CREATE TABLE IF NOT EXISTS schema_w3_175.table_w0_254 (col254_w0_255 GEOMETRY NOT NULL)"
  },
  {
   "sql": "DROP SCHEMA \"schema_w4_198\" CASCADE"
  },
  {
   "sql": "CREATE FUNCTION udf_w0_257()\n\tRETURNS VOID\n\tLANGUAGE SQL\n\tAS $$ SELECT 'dffs'::schema_w2_132.enum_w0_154 $$",
   "expectedExecErr": "22023"
  }
 ],
 "expectedExecErrors": "22023",
 "expectedCommitErrors": "",
 "message": "***UNEXPECTED ERROR; Received an unexpected execution error.: ERROR: enum value \"dffs\" is not yet public (SQLSTATE XXUUU)",

Looks like the actual error message isn't correctly returned in the ALTER TYPE DROP VALUE code even though we expect it in the workload (?):

var EnumValueNotYetPublicError = pgerror.New(pgcode.InvalidParameterValue, "enum value is not yet public")

@annrpom annrpom removed the release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. label May 30, 2024
@annrpom annrpom changed the title roachtest: schemachange/mixed-versions failed roachtest: schemachange/mixed-versions failed [enum value \"dffs\" is not yet public (SQLSTATE XXUUU)] May 30, 2024
@annrpom annrpom changed the title roachtest: schemachange/mixed-versions failed [enum value \"dffs\" is not yet public (SQLSTATE XXUUU)] roachtest: schemachange/mixed-versions failed [enum value is not yet public (SQLSTATE XXUUU)] May 30, 2024
@annrpom
Copy link
Contributor

annrpom commented May 30, 2024

ah. mixed-version. 23.2 doesn't have the proper error code associated

[email protected]:26257/movr  OPEN> CREATE FUNCTION udf_w0_257()                
                              -> RETURNS VOID                                
                              -> LANGUAGE SQL                                
                              -> AS $$                                       
                              ->     SELECT 'dffs'::enum_w0_154;             
                              -> $$;                                         
ERROR: enum value "dffs" is not yet public

@rafiss
Copy link
Collaborator

rafiss commented May 30, 2024

nice find! backporting that here: #124880

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
branch-release-24.1 Used to mark GA and release blockers, technical advisories, and bugs for 24.1 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
No open projects
Status: Done
Development

No branches or pull requests

3 participants