activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Rosenberg (JIRA)" <>
Subject [jira] Updated: (AMQ-1577) FailoverTransport doesn't shut-down cleanly, complains about underlying transport going down
Date Thu, 07 Feb 2008 05:54:35 GMT


Jason Rosenberg updated AMQ-1577:


I've included a patch built against a recent 5.1-SNAPSHOT source (svn rev 618082)

The file, includes fixes for 4 issues, including my fix for this issue.

The other issues that this patch includes fixes for are:


The file is also needed for the fix for AMQ-1581

I've added comments in the code that clearly indicate which sections apply to which issue,
so you can easily take edit to include only the fixes you want specifically.


> FailoverTransport doesn't shut-down cleanly, complains about underlying transport going
> --------------------------------------------------------------------------------------------
>                 Key: AMQ-1577
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 5.0.0
>         Environment: 5.1-SNAPSHOT
>            Reporter: Jason Rosenberg
>         Attachments:,
> Hello,
> There's a problem with the FailoverTransport not shutting down cleanly.  It appears that
it shuts down it's underlying transport, e.g. TcpTransport, but then doesn't disable it's
handleTransportFailure thread, which then complains that the underlying transport has gone
away, and tries to restart it again.
> Looking at the code in, there appears to be a simple fix, to check
the 'started' variable in the method 'handleTransportFailure' before logging a warning and
trying to restart the underlying transport.
> Here's a log snippet that demonstrates the problem:
> DEBUG [2008-02-04 03:44:05,752] thread:main                                FailoverTransport
-- Stopped.
> DEBUG [2008-02-04 03:44:05,753] thread:main                                     TcpTransport
-- Stopping transport tcp://localhost/
> WARN  [2008-02-04 03:44:05,760] thread:ActiveMQ Transport: tcp://localhost/
             FailoverTransport -- Transport failed, attempting to automatically reconnect
due to: Socket closed
> Socket closed
>         at Method)
>         at
>         at org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill(
>         at
>         at
>         at org.apache.activemq.openwire.OpenWireFormat.unmarshal(
>         at org.apache.activemq.transport.tcp.TcpTransport.readCommand(
>         at org.apache.activemq.transport.tcp.TcpTransport.doRun(
>         at
>         at
> Jason

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message