Skip to content

tabletserver: refactor parameters#6020

Merged
sougou merged 8 commits intovitessio:masterfrom
planetscale:ss-tabletserver-params
Apr 6, 2020
Merged

tabletserver: refactor parameters#6020
sougou merged 8 commits intovitessio:masterfrom
planetscale:ss-tabletserver-params

Conversation

@sougou
Copy link
Copy Markdown
Contributor

@sougou sougou commented Apr 6, 2020

This cleanup improves readability where all the common parameters of tabletserver are unified under an interface tabletenv.Env. This will further facilitate componentization.

sougou added 8 commits April 5, 2020 23:01
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
Signed-off-by: Sugu Sougoumarane <ssougou@gmail.com>
@sougou
Copy link
Copy Markdown
Contributor Author

sougou commented Apr 6, 2020

@rohit-nayak-ps may also review.

Copy link
Copy Markdown
Collaborator

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good except for one nit.

DBConfigs() *dbconfigs.DBConfigs
}

type testEnv struct {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason the testEnv is in env.go and not in a test file?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because this gets used outside this package (NewTestEnv) for all the tests in tabletserver.

db.AddQuery(q+" limit 10001", &sqltypes.Result{})

_, _, err = tsv.BeginExecute(context.Background(), &target, q, nil, nil)
ctx := context.Background()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@sougou sougou merged commit affbb32 into vitessio:master Apr 6, 2020
@sougou sougou deleted the ss-tabletserver-params branch April 7, 2020 02:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants