Skip to content

Resolve transaction manager race condition#13065

Merged
arhimondr merged 1 commit intotrinodb:masterfrom
arhimondr:transaction-manager-race
Jul 5, 2022
Merged

Resolve transaction manager race condition#13065
arhimondr merged 1 commit intotrinodb:masterfrom
arhimondr:transaction-manager-race

Conversation

@arhimondr
Copy link
Copy Markdown
Contributor

When query is cancelled while being committed a transaction might
disapear in between of the transactionExists and isAutoCommit
methods.

Description

Is this change a fix, improvement, new feature, refactoring, or other?

Fix

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

Core engine

How would you describe this change to a non-technical end user or system administrator?

Non user visible

Related issues, pull requests, and links

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

(x) No release notes entries required.
( ) Release notes entries required with the following suggested text:

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Jul 1, 2022
@arhimondr arhimondr requested a review from a team July 1, 2022 18:02
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

return tryGetTransactionMetadata(transactionId).map(TransactionMetadata::getTransactionInfo); ?

When query is cancelled while being committed a transaction might
disapear in between of the `transactionExists` and `isAutoCommit`
methods.
@arhimondr arhimondr force-pushed the transaction-manager-race branch from 29e57c7 to c823cc7 Compare July 4, 2022 03:05
@arhimondr arhimondr merged commit 07aa6c3 into trinodb:master Jul 5, 2022
@arhimondr arhimondr deleted the transaction-manager-race branch July 5, 2022 14:37
@github-actions github-actions bot added this to the 389 milestone Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants