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

fix: enhance transaction functionality #1281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

reugn
Copy link
Contributor

@reugn reugn commented Sep 6, 2024

Motivation

Various fixes and refactoring for transaction.

Modifications

  • Employ context in the Commit and Abort methods
  • Use client operation timeout
  • Use atomic.Int32 for the state
  • Make all state reads atomic
  • Clean up and improve error messages

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)

Documentation

  • Does this pull request introduce a new feature? (yes / no)

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.

1 participant