Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9143

DistributedHerder misleadingly log error on connector task reconfiguration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.3, 2.5.0, 2.3.2, 2.4.1
    • KafkaConnect
    • None

    Description

      In DistributedHerder in reconfigureConnectorTasksWithRetry method there's a callback:

      @Override
      public void onCompletion(Throwable error, Void result) {
          log.error("Unexpected error during connector task reconfiguration: ", error);
          log.error("Task reconfiguration for {} failed unexpectedly, this connector will not be properly reconfigured unless manually triggered.", connName);
      }
      

      It an error message even when the operation succeeded (i.e., error is null).

      It should include if (error != null) condition, like in the same class in another method.

      Attachments

        Issue Links

          Activity

            People

              ivanyu Ivan Yurchenko
              ivanyu Ivan Yurchenko
              Randall Hauch Randall Hauch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: