-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
server: enable test cluster to take different store configurations #8817
Conversation
This move will allow us to configure testclusters with store level granularity which would otherwise cause circular dependencies.
Review status: 0 of 11 files reviewed at latest revision, 6 unresolved discussions, all commit checks successful. acceptance/cluster/localcluster.go, line 47 [r2] (raw file):
I forgot base/store_spec.go, line 37 [r1] (raw file):
nit: "originally" is confusing here, makes one think it's not based on that any more (even though in spirit it still is). I'd strip it. base/test_server_args.go, line 83 [r2] (raw file):
nit: "match a node's index within TestCluster.Servers" base/test_server_args.go, line 86 [r2] (raw file):
hmmm so what if I want to overwrite the stores on a node (in particular the default store)? server/status_test.go, line 155 [r2] (raw file):
if you happen to know, please add a comment here as to why this tests needs or wants multiple stores. server/testserver.go, line 235 [r2] (raw file):
just curious, why not? Just the lack of cleanup code? Maybe add a comment if you know. Comments from Reviewable |
testServerArgs will now take StoreSpecs instead of just a number of stores. This also adds ServerArgsPerNode on testClusterArgs to enable per server customizable settings. Currently, only in-memory stores are supported. Part of work towards cockroachdb#8473.
Review status: 0 of 11 files reviewed at latest revision, 6 unresolved discussions, some commit checks pending. acceptance/cluster/localcluster.go, line 47 [r2] (raw file):
|
Review status: 0 of 11 files reviewed at latest revision, all discussions resolved, all commit checks successful. Comments from Reviewable |
Reviewed 6 of 7 files at r1, 3 of 6 files at r2, 4 of 4 files at r3. base/store_spec.go, line 40 [r3] (raw file):
It may be nicer to define this in terms of server/testserver.go, line 235 [r3] (raw file):
there's something not right about this sentence. server/testserver.go, line 237 [r3] (raw file):
"in non-memory" is an odd way to say this. "persistent"? testutils/testcluster/testcluster.go, line 137 [r3] (raw file):
shouldn't this have been removed? if not, why was it also added below? Comments from Reviewable |
@tamird, I'll address your comments in a follow up PR shortly. Comments from Reviewable |
Addressed all feedback in #8836 Review status: all files reviewed at latest revision, 4 unresolved discussions, all commit checks successful. base/store_spec.go, line 40 [r3] (raw file):
|
Just a few minor comment changes in response to feedback from cockroachdb#8817.
Just a few minor comment changes in response to feedback from cockroachdb#8817.
2 commits:
This move will allow us to configure testclusters with store level granularity
which would otherwise cause circular dependencies.
testServerArgs will now take StoreSpecs instead of just a number of stores.
This also adds StoreSpecsPerNode on testClusterArgs to enable per node store
settings. Currently, only in-memory stores are supported.
Part of work towards #8473.
This change is