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: backup-restore/small-ranges failed [relation does not exist] #141973

Open
cockroach-teamcity opened this issue Feb 25, 2025 · 2 comments
Labels
B-runtime-assertions-enabled branch-release-24.1.14-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)
Milestone

Comments

@cockroach-teamcity
Copy link
Member

cockroach-teamcity commented Feb 25, 2025

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.backup-restore/small-ranges failed with artifacts on release-24.1.14-rc @ c8459c085e2258f589949e970a527a0342871276:

(monitor.go:149).Wait: monitor failure: schema change workload failed: full command output in run_065758.595367333_n4_COCKROACHRANDOMSEED4.log: COMMAND_PROBLEM: exit status 1 [owner=sql-foundations]
test artifacts and logs in: /artifacts/backup-restore/small-ranges/run_1

Parameters:

  • arch=amd64
  • cloud=gce
  • coverageBuild=false
  • cpu=4
  • encrypted=false
  • fs=ext4
  • localSSD=true
  • runtimeAssertionsBuild=true
  • 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-48100

@cockroach-teamcity cockroach-teamcity added B-runtime-assertions-enabled branch-release-24.1.14-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 Feb 25, 2025
@cockroach-teamcity cockroach-teamcity added this to the 24.1 milestone Feb 25, 2025
@annrpom
Copy link
Contributor

annrpom commented Feb 25, 2025

{
 "workerId": 0,
 "clientTimestamp": "06:58:11.949172",
 "ops": [
  "BEGIN",
  {
   "sql": "ALTER TABLE schema_w0_5.table_w3_456 ADD COLUMN \"col_w3_456_w0_447\" REGROLE UNIQUE"
  },
  "COMMIT"
 ],
 "expectedExecErrors": "",
 "expectedCommitErrors": "",
 "message": "TXN RETRY ERROR; ERROR: restart transaction: error executing PreCommitPhase stage 2 of 2 with 15 MutationType ops: persisting catalog mutations: TransactionRetryWithProtoRefreshError: WriteTooOldError: write for key /Table/3/1/268/2/1 at timestamp 1740466691.948659042,0 too old; must write at or above 1740466692.119215005,1: \"sql txn\" meta={id=ad5f186e key=/Table/3/1/268/2/1 iso=Serializable pri=0.06684582 epo=0 ts=1740466692.119215005,1 min=1740466691.948659042,0 seq=1} lock=true stat=PENDING rts=1740466691.948659042,0 wto=false gul=1740466692.448659042,0 (SQLSTATE 40001)"
}
E250225 06:58:12.243547 1 workload/cli/run.go:568  [-] 3  workload run error: ***UNEXPECTED ERROR; Failed to generate a random operation: ERROR: relation "schema_w0_5.table_w3_456" does not exist (SQLSTATE 42P01)

-- the most recent time table_w3_456 was referenced:
 "ops": [
  "BEGIN",
  {
   "sql": "CREATE TABLE schema_w4_392.table_w4_524 (\"coL524_w4_525\" GEOGRAPHY, 🙀col524_w4_526 STRING COLLATE en_US NOT NULL, \"col524 _w4_527\" OID NULL, col524_w4_528 BPCHAR NULL, \"col%v524_w4_529\" INTERVAL NOT NULL, col524_w4_530 REGROLE NULL, col524_w4_531 TSQUERY NULL, col524_w4_532 PG_LSN NOT NULL, col524_w4_533 FLOAT8, col524_w4_534 REFCURSOR NOT NULL, \"col5 24_w4_535\" STRING AS (lower(CAST(\"coL524_w4_525\" AS STRING))) STORED, UNIQUE (lower(col524_w4_528) ASC, col524_w4_533 ASC, 🙀col524_w4_526 DESC), UNIQUE (🙀col524_w4_526 DESC), UNIQUE (col524_w4_532) STORING (col524_w4_528, col524_w4_531, col524_w4_533, \"col5 24_w4_535\"), INDEX (lower(CAST(col524_w4_534 AS STRING)) DESC) STORING (\"col524 _w4_527\", col524_w4_533, col524_w4_534, \"col5 24_w4_535\") NOT VISIBLE, UNIQUE (col524_w4_528 DESC) STORING (\"col524 _w4_527\", col524_w4_533, col524_w4_534, \"col5 24_w4_535\"), UNIQUE (col524_w4_530 DESC) STORING (\"col524 _w4_527\", col524_w4_531, col524_w4_532, col524_w4_533, col524_w4_534), FAMILY (col524_w4_534), FAMILY (\"coL524_w4_525\"), FAMILY (col524_w4_530, col524_w4_533, col524_w4_532), FAMILY (col524_w4_531), FAMILY (\"col5 24_w4_535\"), FAMILY (\"col524 _w4_527\"), FAMILY (col524_w4_528), FAMILY (\"col%v524_w4_529\", 🙀col524_w4_526))"
  },
  {
   "sql": "ALTER TABLE schema_w0_5.table_w3_456 SET LOCALITY REGIONAL BY ROW",
   "expectedExecErr": "42P16"
  }
 ],
 "expectedExecErrors": "42P16",
 "expectedCommitErrors": "",
 "message": "ROLLBACK; Successfully got expected execution error.: ERROR: cannot alter a table's LOCALITY if its database is not multi-region enabled (SQLSTATE 42P16)"
}

@annrpom annrpom changed the title roachtest: backup-restore/small-ranges failed roachtest: backup-restore/small-ranges failed [relation does not exist] Feb 25, 2025
@annrpom
Copy link
Contributor

annrpom commented Feb 25, 2025

I believe #140613 was supposed to resolve this and the changes did go into this rc

if err := s.setClusterSettings(ctx, urls[0]); err != nil {
return workload.QueryLoad{}, err
}

@annrpom annrpom removed the release-blocker Indicates a release-blocker. Use with branch-release-2x.x label to denote which branch is blocked. label Feb 25, 2025
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.1.14-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

2 participants