You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chris Egerton (Jira)" <ji...@apache.org> on 2023/03/02 18:50:00 UTC

[jira] [Commented] (KAFKA-14773) Make MirrorMaker startup synchronous

    [ https://issues.apache.org/jira/browse/KAFKA-14773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17695862#comment-17695862 ] 

Chris Egerton commented on KAFKA-14773:
---------------------------------------

The shell script encompasses the entire lifetime of MM2; I don't think this really captures the problems that were discussed on the PR.

The general problem is that it's difficult to know when connectors/tasks created by MM2 have failed. It doesn't really matter whether this happens on startup or later in their lifetime. The semantics of the existing {{main}} method are fine unless we want to take the (somewhat nuclear) route of failing the entire process if there's an issue with creating one or more {{Connector}} or {{Task}} instances, which isn't really what I had in mind.

> Make MirrorMaker startup synchronous
> ------------------------------------
>
>                 Key: KAFKA-14773
>                 URL: https://issues.apache.org/jira/browse/KAFKA-14773
>             Project: Kafka
>          Issue Type: Improvement
>            Reporter: Divij Vaidya
>            Priority: Major
>              Labels: mirror-maker
>
> Currently, MirrorMaker is started using `
> ./bin/connect-mirror-maker.sh mm2.properties` shell command. However, even if the shell command has exited and a log with `Kafka MirrorMaker started` has been printed, it is likely that the underlying connectors and tasks have not been configured.
> This tasks aims to make the MirrorMaker startup synchronous by either waiting for connections & tasks to move to running state before exiting the `MirrorMaker#start()` function or by blocking completion of `main()`.
> A conversation about this was done in [https://github.com/apache/kafka/pull/13284] 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)