You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Frank Gynnild (Created) (JIRA)" <ji...@apache.org> on 2012/02/07 20:29:00 UTC
[jira] [Created] (AMQNET-369) Seems like there is a race condition
that can lead to an InvalidDestinationException for tempoary queues after
failover has resumed
Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
-----------------------------------------------------------------------------------------------------------------------------------
Key: AMQNET-369
URL: https://issues.apache.org/jira/browse/AMQNET-369
Project: ActiveMQ .Net
Issue Type: Bug
Affects Versions: 1.5.3
Reporter: Frank Gynnild
Assignee: Jim Gomes
If I repeat the test below I sometimes get a:
Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
Test:
1. Start Message bus
2. Start server code.
3. Stop Message bus
4. Start Message bus
5. Start client code.
The client/server uses the request/response pattern.
I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
somewhere. And I think it's in NMS since I can see these log lines:
AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
...Get InvalidDestinationException here...
AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQNET-369) Seems like there is a race
condition that can lead to an InvalidDestinationException for tempoary
queues after failover has resumed
Posted by "Jim Gomes (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13203078#comment-13203078 ]
Jim Gomes commented on AMQNET-369:
----------------------------------
While there may be a bug here that can be determined with further investigation, I would recommend that for the request/response pattern that you use a topic for the response and use NMSCorrelationID to collect the response. This is superior for many reasons, not the least of which is the potential for a race condition like this, or for the potential resource leak of having a temp queue hang around forever. Additional advantages to using a reply topic are the decrease in server resources, as well as the ability to actually monitor the messages that are being sent and received. You will never be able to use an external message monitoring tool to look inside a temp queue to see what was actually sent.
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (AMQNET-369) Seems like there is a race condition
that can lead to an InvalidDestinationException for tempoary queues after
failover has resumed
Posted by "Timothy Bish (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish resolved AMQNET-369.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.6.0
1.5.4
I beleive this is fixed by AMQNET-372. If you still run into this you can reopen the issue.
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
> Fix For: 1.5.4, 1.6.0
>
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQNET-369) Seems like there is a race
condition that can lead to an InvalidDestinationException for tempoary
queues after failover has resumed
Posted by "Frank Gynnild (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13203361#comment-13203361 ]
Frank Gynnild commented on AMQNET-369:
--------------------------------------
Thanks Jim for suggesting the alternative solution to request/response. That sounds like a better approach. I'll look into it.
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQNET-369) Seems like there is a race
condition that can lead to an InvalidDestinationException for tempoary
queues after failover has resumed
Posted by "Timothy Bish (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13227952#comment-13227952 ]
Timothy Bish commented on AMQNET-369:
-------------------------------------
Does client A send a request with the same Temp Destination that was used prior to the restart of the message bus or does it create a new temp destination with each send of the request message?
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
> Fix For: 1.5.4, 1.6.0
>
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Reopened] (AMQNET-369) Seems like there is a race condition
that can lead to an InvalidDestinationException for tempoary queues after
failover has resumed
Posted by "Frank Gynnild (Reopened) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Frank Gynnild reopened AMQNET-369:
----------------------------------
Re-tested with latest trunk version of the AMQ.NET library, but again I reproduce this behavior unfortunately:
1) Start message bus.
2) Connect client A.
3) Connect client B.
4) Sending request from A to B.
5) B receives it and send response to A.
6) Restart the message bus twice.
7) Failover kicks in for Client A.
8) Failover kicks in for Client B.
9) Client A sends message to client B.
10) Client B receives it.
11) Client B fails to send a response to Client A:
{code}
Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:DEV-124-62337-634669132031059971-1:0:1
at Apache.NMS.ActiveMQ.Session.DoSend(ActiveMQDestination destination, ActiveMQMessage message, MessageProducer producer, MemoryUsage producerWindow, TimeSpan sendTimeout)
at Apache.NMS.ActiveMQ.MessageProducer.Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive, Boolean specifiedTimeToLive)
at Apache.NMS.ActiveMQ.MessageProducer.Send(IMessage message)
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd, IDestination destination, TimeSpan timeToLive)
{code}
So AFAIK, failover and temporary queues are still a no-go.
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
> Fix For: 1.5.4, 1.6.0
>
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (AMQNET-369) Seems like there is a
race condition that can lead to an InvalidDestinationException for tempoary
queues after failover has resumed
Posted by "Frank Gynnild (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202666#comment-13202666 ]
Frank Gynnild edited comment on AMQNET-369 at 2/7/12 8:28 PM:
--------------------------------------------------------------
Here's more of the exact log. The problem temporary queue is "temp-queue://ID:Duracell-61594-634642411329432145-1:0:1" so search for it below to trace this destination.
...
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Transport has resumed normal operation.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] WARN InfoFinder.Framework.Communication.Sender [(null)] - AMQ event: Connection was resumed on the sender end.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Connection established
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] INFO InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Successfully reconnected to: tcp://duracell:61616/?nms.PrefetchPolicy.queuePrefetch=0&keepAlive=true&wireFormat.TightEncodingEnabled=false&wireFormat.CacheEnabled=false&wireFormat.MaxInactivityDuration=300000
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - restore consumer: ID:Duracell-61509-634642410176768518-1:0:-1:1
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - restore consumer: ID:Duracell-61509-634642410176768518-1:0:1:1
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] INFO InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Sending queued commands...
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Transport has resumed normal operation.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] WARN InfoFinder.Framework.Communication.Receiver [(null)] - AMQ event: Connection was resumed on the receiver end.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Connection established
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] INFO InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Successfully reconnected to: tcp://duracell:61616/?nms.PrefetchPolicy.queuePrefetch=0&keepAlive=true&wireFormat.TightEncodingEnabled=false&wireFormat.CacheEnabled=false&wireFormat.MaxInactivityDuration=300000
2012-02-07 19:52:10,005 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 1 ]
2012-02-07 19:52:10,005 <4568> [10368] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 1 ]
2012-02-07 19:52:10,036 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 2 ]
2012-02-07 19:52:10,036 <4568> [10368] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 2 ]
2012-02-07 19:52:10,052 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 4 ]
...
2012-02-07 19:52:13,349 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
2012-02-07 19:52:13,599 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - OnMessage called.
2012-02-07 19:52:13,599 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - Received a message with message ID: ID:Duracell-61594-634642411329432145-1:0:1:1:1. NMSType: InfoFinder.Framework.Communication.Message.Licensing.LicenseCoreObjectRequestCommand.
2012-02-07 19:52:13,599 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - More details. CorrelationID: . Timestamp: 07.02.2012 19:52:13. Time to live: 00:01:00.
2012-02-07 19:52:13,599 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - # of generic arguments: 1.
2012-02-07 19:52:13,615 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Text message received.
...
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Using a different return channel. Type: 'TemporaryQueue'. Name: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Configuration.BasicLocalConfiguration [(null)] - Config path is: 'C:\ProgramData\VirtualWorks\ViaWorks\Configuration\Communication.config'.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommunicationConfiguration [(null)] - Using RequestResponseTimeOut='00:01:00'.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Constructing and sending a NMS command. Type is 'InfoFinder.Framework.Communication.Message.Licensing.LicenseResponseCommand'.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Sending command. Command : InfoFinder.Framework.Communication.Message.Licensing.LicenseResponseCommand
...
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] WARN InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Error occurred while sending a command.
Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
at Apache.NMS.ActiveMQ.Session.DoSend(ActiveMQDestination destination, ActiveMQMessage message, MessageProducer producer, MemoryUsage producerWindow, TimeSpan sendTimeout) in :line 0
at Apache.NMS.ActiveMQ.MessageProducer.Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive, Boolean specifiedTimeToLive) in :line 0
at Apache.NMS.ActiveMQ.MessageProducer.Send(IMessage message) in :line 0
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd, IDestination destination, TimeSpan timeToLive) in C:\infofinder\VirtualWorks\trunk\src\InfoFinder.Framework\Communication\CommandTransceiver.cs:line 203
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd, IDestination destination) in C:\infofinder\VirtualWorks\trunk\src\InfoFinder.Framework\Communication\CommandTransceiver.cs:line 105
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd) in C:\infofinder\VirtualWorks\trunk\src\InfoFinder.Framework\Communication\CommandTransceiver.cs:line 80
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Entering finally clean-up.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Closing return channel.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Remove of Producer[ID:Duracell-61509-634642410176768518-1:1:1:9] sent.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Closed return channel.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] WARN InfoFinder.License.Host.LicenseHost [(null)] - Can't send to an invalid destination.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - Returned from subscription handlers.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - OnMessage completed.
2012-02-07 19:52:19,974 <4568> [13800] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - InactivityMonitor[5]: Message sent since last write check. Resetting flag.
....
2012-02-07 19:53:13,724 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
was (Author: fgynnild):
Here's more of the exact log. The problem temporary queue is "temp-queue://ID:Duracell-61594-634642411329432145-1:0:1" so search for it below to trace this destination.
...
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Transport has resumed normal operation.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] WARN InfoFinder.Framework.Communication.Sender [(null)] - AMQ event: Connection was resumed on the sender end.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Connection established
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] INFO InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Successfully reconnected to: tcp://duracell:61616/?nms.PrefetchPolicy.queuePrefetch=0&keepAlive=true&wireFormat.TightEncodingEnabled=false&wireFormat.CacheEnabled=false&wireFormat.MaxInactivityDuration=300000
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - restore consumer: ID:Duracell-61509-634642410176768518-1:0:-1:1
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - restore consumer: ID:Duracell-61509-634642410176768518-1:0:1:1
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] INFO InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Sending queued commands...
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Transport has resumed normal operation.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] WARN InfoFinder.Framework.Communication.Receiver [(null)] - AMQ event: Connection was resumed on the receiver end.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Connection established
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] INFO InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Successfully reconnected to: tcp://duracell:61616/?nms.PrefetchPolicy.queuePrefetch=0&keepAlive=true&wireFormat.TightEncodingEnabled=false&wireFormat.CacheEnabled=false&wireFormat.MaxInactivityDuration=300000
2012-02-07 19:52:10,005 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 1 ]
2012-02-07 19:52:10,005 <4568> [10368] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 1 ]
2012-02-07 19:52:10,036 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 2 ]
2012-02-07 19:52:10,036 <4568> [10368] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 2 ]
2012-02-07 19:52:10,052 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 4 ]
...
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Using a different return channel. Type: 'TemporaryQueue'. Name: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Configuration.BasicLocalConfiguration [(null)] - Config path is: 'C:\ProgramData\VirtualWorks\ViaWorks\Configuration\Communication.config'.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommunicationConfiguration [(null)] - Using RequestResponseTimeOut='00:01:00'.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Constructing and sending a NMS command. Type is 'InfoFinder.Framework.Communication.Message.Licensing.LicenseResponseCommand'.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Sending command. Command : InfoFinder.Framework.Communication.Message.Licensing.LicenseResponseCommand
...
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] WARN InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Error occurred while sending a command.
Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
at Apache.NMS.ActiveMQ.Session.DoSend(ActiveMQDestination destination, ActiveMQMessage message, MessageProducer producer, MemoryUsage producerWindow, TimeSpan sendTimeout) in :line 0
at Apache.NMS.ActiveMQ.MessageProducer.Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive, Boolean specifiedTimeToLive) in :line 0
at Apache.NMS.ActiveMQ.MessageProducer.Send(IMessage message) in :line 0
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd, IDestination destination, TimeSpan timeToLive) in C:\infofinder\VirtualWorks\trunk\src\InfoFinder.Framework\Communication\CommandTransceiver.cs:line 203
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd, IDestination destination) in C:\infofinder\VirtualWorks\trunk\src\InfoFinder.Framework\Communication\CommandTransceiver.cs:line 105
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd) in C:\infofinder\VirtualWorks\trunk\src\InfoFinder.Framework\Communication\CommandTransceiver.cs:line 80
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Entering finally clean-up.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Closing return channel.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Remove of Producer[ID:Duracell-61509-634642410176768518-1:1:1:9] sent.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Closed return channel.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] WARN InfoFinder.License.Host.LicenseHost [(null)] - Can't send to an invalid destination.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - Returned from subscription handlers.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - OnMessage completed.
2012-02-07 19:52:19,974 <4568> [13800] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - InactivityMonitor[5]: Message sent since last write check. Resetting flag.
....
2012-02-07 19:53:13,724 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQNET-369) Seems like there is a race
condition that can lead to an InvalidDestinationException for tempoary
queues after failover has resumed
Posted by "Frank Gynnild (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202667#comment-13202667 ]
Frank Gynnild commented on AMQNET-369:
--------------------------------------
This code determines if the temp destination is active so either advisoryConsumer must be null for some reason or tempDests doesn't contain dest.
{code}
internal bool IsTempDestinationActive(ActiveMQTempDestination dest)
{
if(this.advisoryConsumer == null)
{
return true;
}
return this.tempDests.Contains(dest);
}
{code}
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Issue Comment Edited] (AMQNET-369) Seems like there is a
race condition that can lead to an InvalidDestinationException for tempoary
queues after failover has resumed
Posted by "Frank Gynnild (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202667#comment-13202667 ]
Frank Gynnild edited comment on AMQNET-369 at 2/7/12 7:36 PM:
--------------------------------------------------------------
This code determines if the temp destination is active so for some reason tempDests can't contain dest.
{code}
internal bool IsTempDestinationActive(ActiveMQTempDestination dest)
{
if(this.advisoryConsumer == null)
{
return true;
}
return this.tempDests.Contains(dest);
}
{code}
was (Author: fgynnild):
This code determines if the temp destination is active so either advisoryConsumer must be null for some reason or tempDests doesn't contain dest.
{code}
internal bool IsTempDestinationActive(ActiveMQTempDestination dest)
{
if(this.advisoryConsumer == null)
{
return true;
}
return this.tempDests.Contains(dest);
}
{code}
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQNET-369) Seems like there is a race
condition that can lead to an InvalidDestinationException for tempoary
queues after failover has resumed
Posted by "Frank Gynnild (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13202666#comment-13202666 ]
Frank Gynnild commented on AMQNET-369:
--------------------------------------
Here's more of the exact log. The problem temporary queue is "temp-queue://ID:Duracell-61594-634642411329432145-1:0:1" so search for it below to trace this destination.
...
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Transport has resumed normal operation.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] WARN InfoFinder.Framework.Communication.Sender [(null)] - AMQ event: Connection was resumed on the sender end.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Connection established
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 3686381] INFO InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Successfully reconnected to: tcp://duracell:61616/?nms.PrefetchPolicy.queuePrefetch=0&keepAlive=true&wireFormat.TightEncodingEnabled=false&wireFormat.CacheEnabled=false&wireFormat.MaxInactivityDuration=300000
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - restore consumer: ID:Duracell-61509-634642410176768518-1:0:-1:1
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - restore consumer: ID:Duracell-61509-634642410176768518-1:0:1:1
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] INFO InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Sending queued commands...
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Transport has resumed normal operation.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] WARN InfoFinder.Framework.Communication.Receiver [(null)] - AMQ event: Connection was resumed on the receiver end.
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Connection established
2012-02-07 19:52:09,974 <4568> [ActiveMQ Failover Worker: 66629781] INFO InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Successfully reconnected to: tcp://duracell:61616/?nms.PrefetchPolicy.queuePrefetch=0&keepAlive=true&wireFormat.TightEncodingEnabled=false&wireFormat.CacheEnabled=false&wireFormat.MaxInactivityDuration=300000
2012-02-07 19:52:10,005 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 1 ]
2012-02-07 19:52:10,005 <4568> [10368] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 1 ]
2012-02-07 19:52:10,036 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 2 ]
2012-02-07 19:52:10,036 <4568> [10368] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 2 ]
2012-02-07 19:52:10,052 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Unknown response ID: 0 for response: Response[ commandId = 0, responseRequired = False, CorrelationId = 4 ]
...
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Using a different return channel. Type: 'TemporaryQueue'. Name: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Configuration.BasicLocalConfiguration [(null)] - Config path is: 'C:\ProgramData\VirtualWorks\ViaWorks\Configuration\Communication.config'.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommunicationConfiguration [(null)] - Using RequestResponseTimeOut='00:01:00'.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Constructing and sending a NMS command. Type is 'InfoFinder.Framework.Communication.Message.Licensing.LicenseResponseCommand'.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Sending command. Command : InfoFinder.Framework.Communication.Message.Licensing.LicenseResponseCommand
...
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] WARN InfoFinder.Framework.Communication.CommandTransceiver [(null)] - Error occurred while sending a command.
Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
at Apache.NMS.ActiveMQ.Session.DoSend(ActiveMQDestination destination, ActiveMQMessage message, MessageProducer producer, MemoryUsage producerWindow, TimeSpan sendTimeout) in :line 0
at Apache.NMS.ActiveMQ.MessageProducer.Send(IDestination destination, IMessage message, MsgDeliveryMode deliveryMode, MsgPriority priority, TimeSpan timeToLive, Boolean specifiedTimeToLive) in :line 0
at Apache.NMS.ActiveMQ.MessageProducer.Send(IMessage message) in :line 0
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd, IDestination destination, TimeSpan timeToLive) in C:\infofinder\VirtualWorks\trunk\src\InfoFinder.Framework\Communication\CommandTransceiver.cs:line 203
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd, IDestination destination) in C:\infofinder\VirtualWorks\trunk\src\InfoFinder.Framework\Communication\CommandTransceiver.cs:line 105
at InfoFinder.Framework.Communication.CommandTransceiver.SendCommand[T](IMessageProducer producer, T cmd) in C:\infofinder\VirtualWorks\trunk\src\InfoFinder.Framework\Communication\CommandTransceiver.cs:line 80
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Entering finally clean-up.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Closing return channel.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - Remove of Producer[ID:Duracell-61509-634642410176768518-1:1:1:9] sent.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Sender [(null)] - Closed return channel.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] WARN InfoFinder.License.Host.LicenseHost [(null)] - Can't send to an invalid destination.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - Returned from subscription handlers.
2012-02-07 19:52:13,646 <4568> [ActiveMQ Task] DEBUG InfoFinder.Framework.Communication.Receiver [(null)] - OnMessage completed.
2012-02-07 19:52:19,974 <4568> [13800] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - InactivityMonitor[5]: Message sent since last write check. Resetting flag.
....
2012-02-07 19:53:13,724 <4568> [3272] DEBUG InfoFinder.Framework.Diagnostics.NmsClientLibraryLogger [(null)] - AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (AMQNET-369) Seems like there is a race condition
that can lead to an InvalidDestinationException for tempoary queues after
failover has resumed
Posted by "Timothy Bish (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timothy Bish updated AMQNET-369:
--------------------------------
Fix Version/s: (was: 1.5.4)
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
> Fix For: 1.6.0
>
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (AMQNET-369) Seems like there is a race
condition that can lead to an InvalidDestinationException for tempoary
queues after failover has resumed
Posted by "Frank Gynnild (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AMQNET-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228471#comment-13228471 ]
Frank Gynnild commented on AMQNET-369:
--------------------------------------
The temp destination gets re-created for every request/response so it's a new temporary destination.
> Seems like there is a race condition that can lead to an InvalidDestinationException for tempoary queues after failover has resumed
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: AMQNET-369
> URL: https://issues.apache.org/jira/browse/AMQNET-369
> Project: ActiveMQ .Net
> Issue Type: Bug
> Affects Versions: 1.5.3
> Reporter: Frank Gynnild
> Assignee: Jim Gomes
> Fix For: 1.5.4, 1.6.0
>
>
> If I repeat the test below I sometimes get a:
> Apache.NMS.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> Test:
> 1. Start Message bus
> 2. Start server code.
> 3. Stop Message bus
> 4. Start Message bus
> 5. Start client code.
> The client/server uses the request/response pattern.
> I don't have a unit test since it doesn't happen all the time. But if happens often enough that I am sure there is a race condition bug here
> somewhere. And I think it's in NMS since I can see these log lines:
> AdvisoryConsumer adding: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
> ...Get InvalidDestinationException here...
> AdvisoryConsumer removing: temp-queue://ID:Duracell-61594-634642411329432145-1:0:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira