You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two race conditions caused testEvictionXA to fail intermittently:
1. Exception event propagation: ActiveMQConnection.addTransportListener()
callbacks fire via executeAsync(), which silently drops tasks when the
pool's ExceptionListener closes the connection and shuts down the
executor first. Fixed by intercepting at the MockTransport level where
exception propagation is synchronous.
2. Pool eviction timing: The pool evicts broken connections asynchronously
via ExceptionListener fired through executeAsync(). The test could
request a new connection before eviction completed. Fixed by using
Wait.waitFor() retry pattern (consistent with other pool tests).
0 commit comments