Merged revision(s) 1374469 from activemq/activemq-dotnet/Apache.NMS.ActiveMQ/branches/1.5.x:
Remove zombie consumers that were created after failover. Fixes https://issues.apache.org/jira/browse/AMQNET-394
diff --git a/src/main/csharp/Connection.cs b/src/main/csharp/Connection.cs
index 34b0322..8381521 100755
--- a/src/main/csharp/Connection.cs
+++ b/src/main/csharp/Connection.cs
@@ -960,7 +960,8 @@
}
}
- 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)