[ 
https://issues.apache.org/jira/browse/AMQ-9849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Louis Monteiro resolved AMQ-9849.
--------------------------------------
      Assignee: Jean-Louis Monteiro
    Resolution: Fixed

> 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
>            Assignee: 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


Reply via email to