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

[CLIENT-3241] Throw exceptions when an MRT commit is called but transaction was already aborted and when an MRT abort is called but a transaction was already committed. #707

Draft
wants to merge 8 commits into
base: dev
Choose a base branch
from

Conversation

juliannguyen4
Copy link
Collaborator

@juliannguyen4 juliannguyen4 commented Jan 3, 2025

Replace constants aerospike.MRT_COMMIT_ALREADY_ABORTED and aerospike.MRT_ABORT_ALREADY_COMMITTED with Aerospike exceptions TransactionAlreadyAborted and TransactionAlreadyCommitted, respectively

Extra changes:

  • Add missing type stub and documentation for TransactionFailed exception
  • [DOC-3201] Fix typo in TransactionFailed exception name

Regression testing

  • Build artifacts passes
  • Valgrind shows no memory errors
  • massif looks fine

Doc changes
https://aerospike-python-client--707.org.readthedocs.build/en/707/aerospike.html#mrt-commit-status
https://aerospike-python-client--707.org.readthedocs.build/en/707/exception.html#aerospike.exception.TransactionFailed

@juliannguyen4 juliannguyen4 changed the title [CLIENT-3241] Throw exception when MRT commit called, but transaction was already aborted. [CLIENT-3241] Throw exceptions when an MRT commit is called but transaction was already aborted and when an MRT abort is called but a transaction was already committed. Jan 3, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.08%. Comparing base (450d744) to head (13c8604).
Report is 3 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #707      +/-   ##
==========================================
+ Coverage   81.05%   81.08%   +0.02%     
==========================================
  Files         102      102              
  Lines       15187    15187              
==========================================
+ Hits        12310    12314       +4     
+ Misses       2877     2873       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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