activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r1374469 - /activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x/src/main/csharp/Connection.cs
Date Fri, 17 Aug 2012 23:18:03 GMT
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)



Mime
View raw message