Skip to content

Fix flaky XACompletionTest by adding wait for async states#1862

Merged
jbonofre merged 2 commits intoapache:mainfrom
gurpartap3697:fix/XACompletionTest-testStatsAndBrowseAfterAckPreparedRolledback-flaky-test
Apr 2, 2026
Merged

Fix flaky XACompletionTest by adding wait for async states#1862
jbonofre merged 2 commits intoapache:mainfrom
gurpartap3697:fix/XACompletionTest-testStatsAndBrowseAfterAckPreparedRolledback-flaky-test

Conversation

@gurpartap3697
Copy link
Copy Markdown
Contributor

XACompletionTest.testStatsAndBrowseAfterAckPreparedRolledback was failing intermittently:

Error:    XACompletionTest.testStatsAndBrowseAfterAckPreparedRolledback:254 size 0 expected:<0> but was:<10>

ref: https://github.com/apache/activemq/actions/runs/23623154131/job/68806975829

The test relied on immediate JMX state, which is asynchronous and can lead to flakiness.

@jbonofre jbonofre self-requested a review March 30, 2026 18:47
jbonofre
jbonofre previously approved these changes Mar 30, 2026
Copy link
Copy Markdown
Member

@jbonofre jbonofre left a comment

Choose a reason for hiding this comment

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

LGTM, I have just 2 suggestions for you.

@gurpartap3697 gurpartap3697 force-pushed the fix/XACompletionTest-testStatsAndBrowseAfterAckPreparedRolledback-flaky-test branch from e87d689 to 6c7cab0 Compare March 30, 2026 19:16
@gurpartap3697
Copy link
Copy Markdown
Contributor Author

Thanks @jbonofre for feedback! I updated the pr with suggested changes.

@gurpartap3697 gurpartap3697 requested a review from jbonofre March 30, 2026 19:17
@jbonofre
Copy link
Copy Markdown
Member

@gurpartap3697 good job ! I will merge as soon as CI is green.

@jbonofre jbonofre merged commit 27c1744 into apache:main Apr 2, 2026
19 of 20 checks passed
@gurpartap3697 gurpartap3697 deleted the fix/XACompletionTest-testStatsAndBrowseAfterAckPreparedRolledback-flaky-test branch April 2, 2026 17:25
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