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

Connect distributed and standalone worker 'main()' methods should catch and log all exceptions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.10.0.0
    • Fix Version/s: 1.1.0
    • Component/s: KafkaConnect
    • Labels:
      None

      Description

      Currently, the main methods in ConnectDistributed and ConnectStandalone do not catch and log most of the potential exceptions. That means that when such an exception does occur, Java does terminate the process and report it to stderr, but does not log the exception in the log.

      We should add a try block around most of the existing code in the main method to catch any Throwable exception, log it, and either rethrow it or explicitly exit with a non-zero return code.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rhauch Randall Hauch
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: