Skip to content

Fix the 'max_tm_gxacts' value after fault injection#1975

Closed
whitehawk wants to merge 2 commits intoadb-7.2.0from
ADBDEV-8415
Closed

Fix the 'max_tm_gxacts' value after fault injection#1975
whitehawk wants to merge 2 commits intoadb-7.2.0from
ADBDEV-8415

Conversation

@whitehawk
Copy link

@whitehawk whitehawk commented Sep 26, 2025

Fix the 'max_tm_gxacts' value after fault injection

Problem description:
After sequential execution of isolation2 tests 'standby_replay_dtx_info' and
'ao_unique_index' the coordinator's standby postmaster process together with
its children processes were terminated.

Root cause:
Test 'standby_replay_dtx_info' sets fault injection 'standby_gxacts_overflow'
on coordinator's standby, which updates the global var 'max_tm_gxacts' (the
limit of distributed transactions) to 1, but at the reset of this fault the
value of 'max_tm_gxacts' was not updated to its original value. Therefore, on
any next test that created more than 2 distributed transactions that were
replayed on the standby, the standby encountered the fatal error "the limit of 1
distributed transactions has been reached" and it was terminated.

Fix:
Set 'max_tm_gxacts' to its original value when fault injection
'standby_gxacts_overflow' is not set.

@whitehawk whitehawk changed the title Adbdev 8415 Fix the 'max_tm_gxacts' value after fault injection Sep 26, 2025
@whitehawk whitehawk marked this pull request as ready for review September 26, 2025 11:00
@whitehawk
Copy link
Author

Closed in favor of GreengageDB/greengage#73

@whitehawk whitehawk closed this Sep 30, 2025
@whitehawk whitehawk deleted the ADBDEV-8415 branch February 12, 2026 22:53
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

Comments