Skip to content

Add support for two phase commit and fix sparray test result mismatch#1063

Merged
bimalkjha merged 1 commit into
ibmdb:masterfrom
Earammak:duow_support
Jun 9, 2026
Merged

Add support for two phase commit and fix sparray test result mismatch#1063
bimalkjha merged 1 commit into
ibmdb:masterfrom
Earammak:duow_support

Conversation

@Earammak

@Earammak Earammak commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

This PR introduces two-phase commit (2PC) / Distributed Unit of Work (DUOW) support in the ibm_db and ibm_db_dbi layers.
It adds new coordinated transaction APIs, expands sync, DBI, and async test coverage, updates DUOW and async documentation, and fixes sparray test expectation mismatches that were causing test suite failures.

Below are the new APIs added as part of two phse commit support:

  • ibm_db.alloc_env_handle()
  • ibm_db.set_env_attr()
  • ibm_db.free_env_handle()
  • ibm_db.connect_coordinated()
  • ibm_db.commit_two_phase()
  • ibm_db.rollback_two_phase()

Also Included

  • Coordinated transaction support in ibm_db_dbi through CoordinatedConnection
  • Async coordinated transaction support through AsyncCoordinatedConnection
  • New DUOW test suites for ibm_db, ibm_db_dbi, and async coordinated commit/rollback flows
  • Documentation updates in ASYNC_APIs_WIKI.md

Sparray test fixes in ibm_db_tests/test_sparray_inout_computations.py and ibm_db_tests/test_sparray_input_output_computations.py to align expected and actual results

Signed-off-by: Earamma K <ek@rocketsoftware.com>
@Earammak Earammak linked an issue Jun 9, 2026 that may be closed by this pull request
@Earammak Earammak requested a review from bimalkjha June 9, 2026 07:04
@bimalkjha bimalkjha merged commit 2b18631 into ibmdb:master Jun 9, 2026
8 checks passed
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.

support for limited DUOW (two phase commit) with only Db2-databases?

2 participants