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

Cached connection does not return error after rebooting ActiveMQ and a message is lost

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • 5.16.3
    • None
    • STOMP
    • None

    Description

      Background:

      I am using STOMP to publish messages to a topic in ActiveMQ. In my client program, written in lua, I keep a publishing connection in a variable and use it to publish all topic messages. If the connection times out, it catches error and get a new connection and continues .....

      Issue:

      When an ActiveMQ instance is rebooted for whatever the reason, my client program doesn't know that it was rebooted and continue to publishes a topic message with the connection that was obtained before the reboot. Strangely it doesn't get any error message when it publishes a topic message first time after reboot. It should fail because the connection is not valid any longer.  When it tries to publish another message (second attempt), then the client program gets error message -"broken pipe". For this, I only get to retry the second message to recover by retrying it. The first message after the reboot is lost because a topic subscriber doesn't get the message.

       

      Attachments

        Activity

          People

            jbertram Justin Bertram
            timk.mailbox@gmail.com Timothy Kim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: