Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uproachtest: add CREATE INDEX on tpcc 1000 cluster #31319
Conversation
vivekmenezes
requested a review
from
dt
Oct 12, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
reviewed
Oct 12, 2018
Reviewable status:
complete! 0 of 0 LGTMs obtained
pkg/cmd/roachtest/create_index.go, line 28 at r1 (raw file):
numNodes := 5 r.Add(testSpec{ Name: fmt.Sprintf("createindex/tpcc/warehouses=%d/nodes=%d", warehouses, numNodes),
Drive-by comment: the naming of roachtests is becoming inconsistent. We have backupTPCC vs cancel/tpcc vs cdc/w=1000 (which runs TPC-C). We have schemachange and now createindex/... which is also a schema change test. I don't have a proposal here. Perhaps this isn't a big problem. Mainly I'm bringing this up in the hopes of nerd sniping @andreimatei.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
bors r+ |
bot
pushed a commit
that referenced
this pull request
Oct 16, 2018
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
craig
bot
commented
Oct 16, 2018
Build succeeded |
petermattis
reviewed
Oct 16, 2018
Reviewable status:
complete! 0 of 0 LGTMs obtained
pkg/cmd/roachtest/create_index.go, line 28 at r1 (raw file):
Previously, petermattis (Peter Mattis) wrote…
Drive-by comment: the naming of roachtests is becoming inconsistent. We have
backupTPCCvscancel/tpccvscdc/w=1000(which runs TPC-C). We haveschemachangeand nowcreateindex/...which is also a schema change test. I don't have a proposal here. Perhaps this isn't a big problem. Mainly I'm bringing this up in the hopes of nerd sniping @andreimatei.
Ping. I don't want this to get lost.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andreimatei
Oct 16, 2018
Member
Well I'm not familiar with most of these tests... I'm not sure what you want me to do :)
|
Well I'm not familiar with most of these tests... I'm not sure what you want me to do :) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
Oct 16, 2018
Contributor
Well I'm not familiar with most of these tests... I'm not sure what you want me to do :)
Propose a naming scheme so that we avoid having a dumping ground. Don't you think all of the schema change tests shows be grouped somehow?
Propose a naming scheme so that we avoid having a dumping ground. Don't you think all of the schema change tests shows be grouped somehow? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andreimatei
Oct 16, 2018
Member
I do think naming conventions are good for grouping schema change tests in commands like roachtest list. And since I'm getting rid of subtests, I think that names made up of /-separated components is great.
In the case of the test introduced in this patch (createindex/tpcc/warehouses=%d/nodes=%d), I don't really know if this should be considered a schema change test or a tpcc + nemesis test (basically, do we want to emphasize the schema change aspect or the tpcc aspect?).
But I can't really make this determination; for example I don't know what the failing criteria for this test is. I see that the index creation part fails if the create index statements returns an error. I don't know when the TPCC part fails - I see a --tolerate-errors being passed for unexplained reasons, so I assume it doesn't fail much :P.
So, if it's a schema change test, I think it'd prolly be good if the test name started with either schemachange.
If it's a "tpcc test", I think we would have probably benefited from introducing a framework for composing workloads (tpcc) with nemeses (schema change), and expressed the test purely declaratively - and then you'd get an auto-generated name too.
But, like, beyond bike shedding over particulars, I don't feel prepared to philosophize over generalities yet. If you put me in charge of this, I'll respectfully punt.
|
I do think naming conventions are good for grouping schema change tests in commands like But, like, beyond bike shedding over particulars, I don't feel prepared to philosophize over generalities yet. If you put me in charge of this, I'll respectfully punt. |
vivekmenezes
referenced this pull request
Oct 17, 2018
Open
sql: roachtest large schema changes #27851
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
petermattis
Oct 17, 2018
Contributor
Given that the author was exercising schema changes, I think the test name should be grouped with other schema change tests. For example, schemachange/createindex/tpcc-%d/nodes=%d.
@vivekmenezes You've been silent on this convo. Can you chime in here?
|
Given that the author was exercising schema changes, I think the test name should be grouped with other schema change tests. For example, @vivekmenezes You've been silent on this convo. Can you chime in here? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vivekmenezes
Oct 17, 2018
Contributor
@petermattis using the schemachange prefix makes sense at this stage so we at least have some organization at the top level.
|
@petermattis using the schemachange prefix makes sense at this stage so we at least have some organization at the top level. |
vivekmenezes commentedOct 12, 2018
The roachtest creates an index against a table with
30M rows on a tpcc cluster with a 1000 warehouses.
The test takes around 3 hours to run.
Release note: None