You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2012/08/18 01:18:03 UTC
svn commit: r1374469 -
/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/Connection.cs
Author: jgomes
Date: Fri Aug 17 23:18:03 2012
New Revision: 1374469
URL: http://svn.apache.org/viewvc?rev=1374469&view=rev
Log:
Remove zombie consumers that were created after failover. Fixes https://issues.apache.org/jira/browse/AMQNET-394
Modified:
activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/Connection.cs
Modified: activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/Connection.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/Connection.cs?rev=1374469&r1=1374468&r2=1374469&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/Connection.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/Connection.cs Fri Aug 17 23:18:03 2012
@@ -907,7 +907,8 @@ namespace Apache.NMS.ActiveMQ
}
}
- Tracer.ErrorFormat("Connection[{0}]: No such consumer active: " + dispatch.ConsumerId, this.ConnectionId);
+ Tracer.ErrorFormat("Connection[{0}]: No such consumer active: {1}. Removing...", this.ConnectionId, dispatch.ConsumerId);
+ transport.Oneway(new RemoveInfo() { ObjectId = dispatch.ConsumerId });
}
protected void OnKeepAliveCommand(ITransport commandTransport, KeepAliveInfo info)