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

Revert "sql: use user transaction if we have one to prepare queries" #46811

Closed

Conversation

ajwerner
Copy link
Contributor

@ajwerner ajwerner commented Mar 31, 2020

This reverts commit 0b945bf.

Release note: None

@ajwerner ajwerner requested a review from andreimatei March 31, 2020 21:23
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@ajwerner ajwerner force-pushed the ajwerner/revert-use-user-txn branch from fdedc00 to ca04d18 Compare March 31, 2020 21:24
@andreimatei
Copy link
Contributor

Say something in the commit msg about how it appears that we don't like retriable error events when there's no transaction in progress

@ajwerner
Copy link
Contributor Author

The problem is that if we got an error which can be retried but we used a new transaction then we should make sure that doesn't get turned into a retriable error for the state machine.

One question I have is whether we should run the prepare inside of a db.Txn loop so we internally retry those errors rather than bubbling them up when we choose to create a new transaction.

@ajwerner
Copy link
Contributor Author

ajwerner commented Apr 1, 2020

Abandoning in favor of #46829.

@ajwerner ajwerner closed this Apr 1, 2020
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.

3 participants