-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
Change Autocommit Query Plan #983
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
enginetest/enginetests.go
Outdated
@@ -5080,6 +5080,39 @@ func TestUse(t *testing.T, harness Harness) { | |||
require.Equal("foo", ctx.GetCurrentDatabase()) | |||
} | |||
|
|||
func TestConcurrentTransaction(t *testing.T, harness Harness) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A comment about what this test is supposed to accomplish would be helpful
sql/analyzer/rule_ids.go
Outdated
@@ -114,6 +114,7 @@ const ( | |||
validateAggregationsId // validateAggregations | |||
|
|||
// after all | |||
Autocommit // addAutocommitNode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AutoCommitId
This PR adds a new analyzer rule and query Node for autocommit. This fixes an issue where previously a query process was being killed (via a cancelCtx function) before a transaction committed.