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

Test: Wait for finalization to verify fund transfers #1081

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Dec 18, 2024

Since distributed-transactions-test.py running with --activate-if has an irreversible node, wait for finalization of distributed funds before validation.

Test instability seems to have been caused by the combination of #1068 and #1036.
#1068 - Changed waitForBlock to not wait on an extra block.
#1036 - Changed distibuted-transactions-test.py to have an irreversible node when --activate-if.

Resolves #1078

…e-if has an irreversible node, wait for finalization before validation.
@heifner heifner requested review from linh2931 and greg7mdp December 18, 2024 19:28
@heifner heifner added the OCI Work exclusive to OCI team label Dec 18, 2024
@@ -100,7 +100,8 @@
errorExit("Accounts creation failed.")

Print("Spread funds and validate")
if not cluster.spreadFundsAndValidate(10):
# if activateIF then irreversible node needs funds to be irreversible before validation
if not cluster.spreadFundsAndValidate(10, waitForFinalization=activateIF):
Copy link
Member

Choose a reason for hiding this comment

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

so if activeateIF, will always wait for finalization even in head and speculative modes?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes

@heifner heifner merged commit 9a8dad3 into main Dec 19, 2024
36 checks passed
@heifner heifner deleted the GH-1078-distributed-trx-test branch December 19, 2024 13:03
@ericpassmore
Copy link
Contributor

Note:start
category: Tests
component: Internal
summary: Resolve test instability in distributed transaction tests.
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test Failure: distributed-transactions-if-test
4 participants