Uploaded image for project: 'Stratos'
  1. Stratos
  2. STRATOS-627

Event Publishers and Subscribers do not reconnect to message broker if connection drops

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: None
    • Labels:
      None

      Description

      As identified during the flow tests event publishers and event subscribers do not re-connect to message broker if the connection drops while Stratos components are running.

        Activity

        Hide
        imesh Imesh Gunaratne added a comment -

        This issue was fixed as described below:

        • If the message broker connection drops, event publishers will retry to publish messages every one minute.
        • Event subscribers will start a health checker thread and the health checker will ping message broker every one second using a new topic called "ping". There are no subscribers to this topic. This functionality is needed to detect session timeouts and reconnect event subscribers.
        • Since event subscriber reconnect time interval is less than event publisher time interval subscriber will always reconnect before the publisher.
        Show
        imesh Imesh Gunaratne added a comment - This issue was fixed as described below: If the message broker connection drops, event publishers will retry to publish messages every one minute. Event subscribers will start a health checker thread and the health checker will ping message broker every one second using a new topic called "ping". There are no subscribers to this topic. This functionality is needed to detect session timeouts and reconnect event subscribers. Since event subscriber reconnect time interval is less than event publisher time interval subscriber will always reconnect before the publisher.
        Hide
        imesh Imesh Gunaratne added a comment -

        Changes committed in commit revision: 1afd29698523caf81f0794a768ab2da45322b406

        Show
        imesh Imesh Gunaratne added a comment - Changes committed in commit revision: 1afd29698523caf81f0794a768ab2da45322b406

          People

          • Assignee:
            imesh Imesh Gunaratne
            Reporter:
            imesh Imesh Gunaratne
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development