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

cherry-pick 2.0: sql: introduce connExecutor, the query execution orchestrator #22812

Merged
merged 2 commits into from
Feb 19, 2018

Conversation

andreimatei
Copy link
Contributor

Cherry-pick #22780
Cherry-pick #22277

cc @cockroachdb/release

This patch removes the flavor of force_retry that explicitly takes in a
transaction id. This function was used to test that SQL has protection
for not retrying on a retriable error that was intended for a different
txn. It has outlived its usefulness: lower layers now have protection
against returning a retriable error for the wrong txn to SQL. I don't
want to keep the SQL-level protection in the connExecutor code.

Release note: None
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@knz
Copy link
Contributor

knz commented Feb 19, 2018

Please cherry-pick your last changes to #22277 here too.
LGTM otherwise.

@andreimatei andreimatei changed the base branch from master to release-2.0 February 19, 2018 16:41
Release note: None

The connExecutor is the top dog that interfaces with a pgwire connection
(through the clientComm and CommandResult interfaces), consumes a stream
of queries and produces a stream of results. It encapsulates the
connection state machine for which it produces events. It interfaces
with the two SQL execution engines for actually running queries. Its
main responsibility is to dispatch statements based on the current state
(in txn, not in txn, in aborted txn, etc) and to handle execution in all
states but Open (in Open it talks to an execution engine). It also
handles other commands than executiong queries: preparing, binding, etc
and it maintains the session state associated with prepares statements.
@andreimatei
Copy link
Contributor Author

There's been no changes to #22277 since creating this PR.


Review status: 0 of 54 files reviewed at latest revision, all discussions resolved, all commit checks successful.


Comments from Reviewable

@andreimatei andreimatei merged commit 466c185 into cockroachdb:release-2.0 Feb 19, 2018
@andreimatei andreimatei deleted the cherry-pick-conn-ex branch February 19, 2018 18:56
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