You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jason Gustafson (JIRA)" <ji...@apache.org> on 2018/02/23 06:35:00 UTC

[jira] [Resolved] (KAFKA-6578) Connect distributed and standalone worker 'main()' methods should catch and log all exceptions

     [ https://issues.apache.org/jira/browse/KAFKA-6578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Gustafson resolved KAFKA-6578.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.0

> Connect distributed and standalone worker 'main()' methods should catch and log all exceptions
> ----------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-6578
>                 URL: https://issues.apache.org/jira/browse/KAFKA-6578
>             Project: Kafka
>          Issue Type: Bug
>          Components: KafkaConnect
>    Affects Versions: 0.10.0.0
>            Reporter: Randall Hauch
>            Priority: Critical
>             Fix For: 1.1.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)