[
https://issues.apache.org/jira/browse/AMQ-9849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18056012#comment-18056012
]
ASF subversion and git services commented on AMQ-9849:
------------------------------------------------------
Commit 578de9ba1fb3851b3ec91a767d313df922ad7cd3 in activemq's branch
refs/heads/main from Jean-Louis Monteiro
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=578de9ba1f ]
Flaky Tests and bug fixes (#1634)
* AMQ-9849 Improve connection availability check in NetworkReconnectSslNioTest
to prevent errors during remote exception handling
AMQ-9848 Add testQueuePauseResume to VirtualTopicsAndDurableSubsTest for queue
pause/resume functionality
AMQ-9847 Add assertions to QueueZeroPrefetchLazyDispatchPriorityTest for
message enqueuing and availability
AMQ-9841 Fix potential NPE in JMSConsumerTest by ensuring subscriptions list is
not null before accessing its size
Reduce maxWait timeout in SslTransportBrokerTest to improve test performance
AMQ-9842 Improve JobSchedulerWithAdvisoryMessageTest to use Wait utility for
queue advisory verification
AMQ-9841 Enhance JMSConsumerTest to ensure correct message dispatching between
consumers
* Fix flaky test in AmqpReceiverTest by adding wait for dispatch count to be
updated
* Fix logging behavior in AMQ5426Test to only flag ERROR level events
> Fix race condition in NetworkReconnectSslNioTest causing
> NoSuchElementException
> -------------------------------------------------------------------------------
>
> Key: AMQ-9849
> URL: https://issues.apache.org/jira/browse/AMQ-9849
> Project: ActiveMQ
> Issue Type: Test
> Reporter: Jean-Louis Monteiro
> Priority: Major
> Fix For: 6.3.0
>
>
> The test accesses transportConnector.getConnections().iterator().next()
> without checking if connections exist. During the 200 reconnection
> iterations, there's a race window where the connections list can be empty,
> causing NoSuchElementException. Fixed by adding Wait.waitFor() to ensure a
> connection is available before accessing it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact