You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/12/22 01:39:02 UTC

[jira] [Commented] (KAFKA-3496) Add reconnect attemps policies for client

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

ASF GitHub Bot commented on KAFKA-3496:
---------------------------------------

ijuma commented on issue #1179: KAFKA-3496 - add policies for client reconnect attempts
URL: https://github.com/apache/kafka/pull/1179#issuecomment-353500722
 
 
   We added exponential backoff via configs instead. Closing for now.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Add reconnect attemps policies for client
> -----------------------------------------
>
>                 Key: KAFKA-3496
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3496
>             Project: Kafka
>          Issue Type: Improvement
>          Components: clients
>    Affects Versions: 0.10.0.0
>            Reporter: Florian Hussonnois
>
> Currently the client reconnection attempts is only controlled by the property : reconnect.backoff.ms
> It would be nice to introduce a reconnect attempt policy. At first, two policies may be defined : 
> - ConstantReconnectAttemptPolicy
> - ExponentialReconnectAttemptPolicy
> The policy could be then configure as follows : 
> Properties config = new Properties(); config.put(ConsumerConfig.RECONNECT_ATTEMPTS_POLICY_CLASS_CONFIG, "org.apache.kafka.clients.ExponentialReconnectAttemptPolicy");
> config.put(ConsumerConfig.RECONNECT_EXPONENTIAL_MAX_DELAY_MS_CONFIG, 5000);



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)