[ 
https://issues.apache.org/jira/browse/AMQ-6494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15629414#comment-15629414
 ] 

Hadrian Zbarcea commented on AMQ-6494:
--------------------------------------

This issue is visible in tests such as DestinationBridgeAccessorsTest.

During shutdown, in BrokerService around line 2208 where JmsConnectors are 
stopped a few SHUTDOWN_INFO and REMOVE_INFO messages are sent. However, the 
transport listener in TransportConnection, checks for 
!brokerService.isStopping() (around line 192) and ignores and skips processing 
of those messages during shutdown. This causes the exceptions and 15 sec 
timeouts.

The PR above solves the problem. I didn't commit it just yet giving it a bit of 
time for review, if anybody could think of any edge case that could cause 
problems.



> Exceptions and timeouts during shutdown of connectors
> -----------------------------------------------------
>
>                 Key: AMQ-6494
>                 URL: https://issues.apache.org/jira/browse/AMQ-6494
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.14.0
>            Reporter: Hadrian Zbarcea
>             Fix For: 5.15.0
>
>
> During shutdown there are a number of BrokerStoppedException(s) thrown 
> unnecessarily and unnecessary timeouts.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to