Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
134834: roachtest: update schemachange/during/kv to use new syntax r=rafiss a=rafiss

The RESTORE syntax changed recently, so the test needs updating.

fixes cockroachdb#134660
Release note: None

Co-authored-by: Rafi Shamim <rafi@cockroachlabs.com>
  • Loading branch information
craig[bot] and rafiss committed Nov 11, 2024
2 parents 82d9ea8 + 9817456 commit 2f324cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cmd/roachtest/tests/schemachange.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func registerSchemaChangeDuringKV(r registry.Registry) {
Suites: registry.Suites(registry.Nightly),
Leases: registry.MetamorphicLeases,
Run: func(ctx context.Context, t test.Test, c cluster.Cluster) {
const fixturePath = `gs://cockroach-fixtures-us-east1/workload/tpch/scalefactor=10/backup?AUTH=implicit`
const fixturePath = `gs://cockroach-fixtures-us-east1/workload/tpch/scalefactor=10?AUTH=implicit`

c.Start(ctx, t.L(), option.DefaultStartOpts(), install.MakeClusterSettings(), c.All())
db := c.Conn(ctx, t.L(), 1)
Expand All @@ -43,7 +43,7 @@ func registerSchemaChangeDuringKV(r registry.Registry) {
m.Go(func(ctx context.Context) error {
t.Status("loading fixture")
if _, err := db.Exec(
`RESTORE DATABASE tpch FROM $1 WITH unsafe_restore_incompatible_version`, fixturePath); err != nil {
`RESTORE DATABASE tpch FROM 'backup' IN $1 WITH unsafe_restore_incompatible_version`, fixturePath); err != nil {
t.Fatal(err)
}
return nil
Expand Down

0 comments on commit 2f324cc

Please sign in to comment.