roachtest: fix schemachange/mixed/tpcc for 19.1#41079
roachtest: fix schemachange/mixed/tpcc for 19.1#41079craig[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
949980e to
d4a96aa
Compare
pbardea
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @lucy-zhang and @pbardea)
pkg/cmd/roachtest/schemachange.go, line 428 at r1 (raw file):
if err := runAndLogStmts(ctx, t, c, "mixed-schema-changes-19.1", []string{ `CREATE TABLE tpcc.orderpks (o_w_id, o_d_id, o_id, PRIMARY KEY(o_w_id, o_d_id, o_id));`, `INSERT INTO tpcc.orderpks SELECT o_w_id, o_d_id, o_id FROM tpcc.order LIMIT 1000;`,
What's the purpose of this LIMIT 1000?
`schemachange/mixed/tpcc` uses `CREATE TABLE AS` in 19.2. This PR will have the test correctly create a similar table in 19.1 without using `CREATE TABLE AS`. Release justification: Fixes a test. Release note: None
d4a96aa to
2c744d4
Compare
thoszhang
left a comment
There was a problem hiding this comment.
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @pbardea)
pkg/cmd/roachtest/schemachange.go, line 428 at r1 (raw file):
Previously, pbardea (Paul Bardea) wrote…
What's the purpose of this
LIMIT 1000?
It's just to limit the number of rows to insert so we don't try to read and insert all 30 million rows of tpcc.order in this transaction, since I figured that the tables don't have to be identical in 19.1 and 19.2. 1000 might be too conservative, though. Now that I think about it, the best option is probably to just use all the rows to get a similarly-sized table, but use AOST to reduce contention, so I changed it.
pbardea
left a comment
There was a problem hiding this comment.
LGTM
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @pbardea)
|
TFTR bors r+ |
41079: roachtest: fix schemachange/mixed/tpcc for 19.1 r=lucy-zhang a=lucy-zhang `schemachange/mixed/tpcc` uses `CREATE TABLE AS` in 19.2. This PR will have the test correctly create a similar table in 19.1 without using `CREATE TABLE AS`. See #40935 (comment). Release justification: Fixes a test. Release note: None Co-authored-by: Lucy Zhang <lucy-zhang@users.noreply.github.com>
Build succeeded |
schemachange/mixed/tpccusesCREATE TABLE ASin 19.2. This PR will have thetest correctly create a similar table in 19.1 without using
CREATE TABLE AS.See #40935 (comment).
Release justification: Fixes a test.
Release note: None