You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flume.apache.org by "Endre Major (JIRA)" <ji...@apache.org> on 2018/10/04 10:22:00 UTC

[jira] [Commented] (FLUME-3274) KafkaSource and JMSSource stucks at startup connection exception

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

Endre Major commented on FLUME-3274:
------------------------------------

The current 0.9 Kafka client blocks indefinitely when the Kafka server is not running. So it will block Flume startup. Not so good. Moving to 2.0 Kafka client would help with this problem.

> KafkaSource and JMSSource stucks at startup connection exception
> ----------------------------------------------------------------
>
>                 Key: FLUME-3274
>                 URL: https://issues.apache.org/jira/browse/FLUME-3274
>             Project: Flume
>          Issue Type: Bug
>            Reporter: Endre Major
>            Assignee: Endre Major
>            Priority: Major
>
> This problem can happen in sources that are derived from BasicSourceSemantics. BasicSourceSemantics at startup if an exception occurs, it stores it. This behavior only makes sense if the start only throws an exception for unrecoverable configuration problems. Both KafkaSource and JMSSource try to connect to a Kafka or JMS server at startup, if the server is not available the flume agent needs to be restarted. They both can recover after connection errors after a successful startup.
> The start() should only throw an exception for unrecoverable problems.
> We need to make sure that the reconnect mechanism is safe and even if there is some configuration problem it does not start  a DOS attack.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@flume.apache.org
For additional commands, e-mail: issues-help@flume.apache.org