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

Change Autocommit Query Plan #983

Merged
merged 13 commits into from
Apr 30, 2022
Merged

Conversation

VinaiRachakonda
Copy link
Contributor

@VinaiRachakonda VinaiRachakonda commented Apr 27, 2022

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.

@VinaiRachakonda VinaiRachakonda changed the title [WIP] Transaction Ordering Change Autocommit Query Plan Apr 28, 2022
Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -5080,6 +5080,39 @@ func TestUse(t *testing.T, harness Harness) {
require.Equal("foo", ctx.GetCurrentDatabase())
}

func TestConcurrentTransaction(t *testing.T, harness Harness) {
Copy link
Member

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

@@ -114,6 +114,7 @@ const (
validateAggregationsId // validateAggregations

// after all
Autocommit // addAutocommitNode
Copy link
Member

Choose a reason for hiding this comment

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

AutoCommitId

@VinaiRachakonda VinaiRachakonda merged commit 7028950 into main Apr 30, 2022
@Hydrocharged Hydrocharged deleted the vinai/transaction-ordering branch October 13, 2022 12:51
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