Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-5469

Response to a temporary queue fails after broker failover

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 5.8.0
    • None
    • None
    • None
    • JRE 1.7.0_25

    Description

      Response to a temporary queue fails after broker failover.

      javax.jms.InvalidDestinationException: Cannot publish to a deleted Destination: temp-queue://ID:evdekarjmeissne-63101-1417524335354-9:1:1
      at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1735)

      The issue only occurs for clients that newly connect after the broker failover.
      The issue only occurs if the component sends the response on a different session than the session on which the request was received.
      A workaround is to disable watchTopicAdvisories.

      I have a unit test to demonstrate the issue.

      Is it allowed to use different sessions to receive requests and send replies? Or is this discouraged?
      Why does it work if I disable watchTopicAdvisories? Is this a valid option?

      Attachments

        Activity

          People

            Unassigned Unassigned
            JensMeissner Jens Meißner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: