Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7914

MQTT Endpoint disconnects on failure. Does not reconnect

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14.0
    • Fix Version/s: 2.13.4, 2.14.2, 2.15.0
    • Component/s: camel-mqtt
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      When an error occurs in the Camel MQTT endpoint, the CallbackConnection onFailure callback simply disconnects the connection.

      At that point there doesn't seem to be any mechanism to reconnect to the broker.

                  public void onFailure(Throwable value) {
                      connection.disconnect(new Callback<Void>() {
                          public void onSuccess(Void value) {
                          }
      
                          public void onFailure(Throwable e) {
                              LOG.debug("Failed to disconnect from " + configuration.getHost() + ". This exception is ignored.", e);
                          }
                      });
                  }
      

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davydewaele Davy De Waele

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment