Skip to content
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

Reserve Connection: tablet server implementation #6313

Merged
merged 31 commits into from
Jul 1, 2020

Conversation

harshit-gangal
Copy link
Member

@harshit-gangal harshit-gangal commented Jun 15, 2020

Linked to #6107

This adds support to allow reserve connections in tablet.

  1. This will allow modifying connection settings (tainting) and close connection rather than return the tainted connection back to pool.
  2. This will allow to add other feature on top of reserve connection where a dedicated connection is needed for a vtgate session like GET_LOCK(), RELEASE_LOCK(), etc.

@harshit-gangal harshit-gangal marked this pull request as draft June 15, 2020 07:00
@systay systay force-pushed the tablet-reserve-conn branch 2 times, most recently from 2708a71 to f94feb3 Compare June 15, 2020 14:46
@harshit-gangal harshit-gangal force-pushed the tablet-reserve-conn branch 3 times, most recently from 16848d3 to 6efce66 Compare June 17, 2020 06:59
@systay systay marked this pull request as ready for review June 17, 2020 15:04
go/vt/vtctl/query.go Show resolved Hide resolved
go/vt/vterrors/aggregate.go Outdated Show resolved Hide resolved
go/vt/vttablet/queryservice/queryservice.go Show resolved Hide resolved
go/vt/vttablet/tabletserver/tx_engine.go Outdated Show resolved Hide resolved
@harshit-gangal harshit-gangal force-pushed the tablet-reserve-conn branch 2 times, most recently from cb10d13 to 5f1bc0c Compare June 20, 2020 12:49
systay and others added 17 commits June 29, 2020 10:21
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…tabletserver

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…or same

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
…ine.Commit renews and taints the new connection. Added endtoend test for Commit with Reserve.

Signed-off-by: deepthi <deepthi@planetscale.com>
…onnection

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
harshit-gangal and others added 11 commits June 29, 2020 10:21
…commit

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…serveBeginExecute

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…e and reserveBeginExecute

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
…connection

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Signed-off-by: Andres Taylor <andres@planetscale.com>

Signed-off-by: Harshit Gangal <harshit@planetscale.com>
Copy link
Member

@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.

LGTM

Signed-off-by: deepthi <deepthi@planetscale.com>
@sougou sougou merged commit 51f2555 into vitessio:master Jul 1, 2020
@deepthi deepthi added this to the v7.0 milestone Jul 17, 2020
@deepthi deepthi deleted the tablet-reserve-conn branch July 31, 2020 16:00
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.

4 participants