Skip to content

ARTEMIS-6207 fix race condition in test - #6644

Merged
clebertsuconic merged 1 commit into
apache:mainfrom
jbertram:ARTEMIS-6207
Aug 24, 2026
Merged

ARTEMIS-6207 fix race condition in test#6644
clebertsuconic merged 1 commit into
apache:mainfrom
jbertram:ARTEMIS-6207

Conversation

@jbertram

Copy link
Copy Markdown
Contributor

This replaces #6638.

@clebertsuconic

Copy link
Copy Markdown
Contributor

can you state which test it's fixing? isn't this a real fix? like fix race in "XYZ". This is fixing test "TestName"

I would state that on the commit message.

All the tests in o.a.a.a.c.c.i.ActiveMQServerStartupTest have a race
condition where o.a.a.a.c.s.i.ActiveMQServerImpl#getCriticalAnalyzer
becomes non-null before any actions are added so that when
o.a.a.a.u.c.CriticalAnalyzerAccessor#fireActions is called on the next
line it might not actually do anything.

The fix is to wait until actions are added before assigning
o.a.a.a.c.s.i.ActiveMQServerImpl#analyzer a value.
@jbertram

Copy link
Copy Markdown
Contributor Author

I fleshed out the commit message with the details.

@clebertsuconic
clebertsuconic merged commit 6fa109e into apache:main Aug 24, 2026
6 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.

2 participants