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

Add reconnect attemps policies for client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.10.0.0
    • None
    • clients
    • None

    Description

      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);

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fhussonnois Florian Hussonnois
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: