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

DistributedHerder misleadingly log error on connector task reconfiguration

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.3, 2.5.0, 2.3.2, 2.4.1
    • Component/s: KafkaConnect
    • Labels:
      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

              • Assignee:
                ivanyu Ivan Yurchenko
                Reporter:
                ivanyu Ivan Yurchenko
                Reviewer:
                Randall Hauch
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: