From 65b044b2001065bce92045d236eb74dc57646f81 Mon Sep 17 00:00:00 2001
From: Boyang Chen Controls how the client uses DNS lookups. If set to If the value is use_all_dns_ips
then, when the lookup returns multiple IP addresses for a hostname,"
- + " they will all be attempted to connect to before failing the connection. Applies to both bootstrap and advertised servers.resolve_canonical_bootstrap_servers_only
each entry will be resolved and expanded into a list of canonical names.
If the value is resolve_canonical_bootstrap_servers_only
each entry will be resolved and expanded into a list of canonical names.
subscribe(topic)
or the Kafka-based offset management strategy.";
public static final String GROUP_INSTANCE_ID_CONFIG = "group.instance.id";
- public static final String GROUP_INSTANCE_ID_DOC = "A unique identifier of the consumer instance provided by the end user. " +
- "Only non-empty strings are permitted. If set, the consumer is treated as a static member, " +
- "which means that only one instance with this ID is allowed in the consumer group at any time. " +
- "This can be used in combination with a larger session timeout to avoid group rebalances caused by transient unavailability " +
- "(e.g. process restarts). If not set, the consumer will join the group as a dynamic member, which is the traditional behavior.";
+ public static final String GROUP_INSTANCE_ID_DOC = "A unique identifier of the consumer instance provided by the end user. "
+ + "Only non-empty strings are permitted. If set, the consumer is treated as a static member, "
+ + "which means that only one instance with this ID is allowed in the consumer group at any time. "
+ + "This can be used in combination with a larger session timeout to avoid group rebalances caused by transient unavailability "
+ + "(e.g. process restarts). If not set, the consumer will join the group as a dynamic member, which is the traditional behavior.";
public static final String MAX_POLL_INTERVAL_MS_CONFIG = "max.poll.interval.ms";
- public static final String MAX_POLL_INTERVAL_MS_DOC = "The maximum delay between invocations of poll() when using " +
- "consumer group management. This places an upper bound on the amount of time that the consumer can be idle " +
- "before fetching more records. If poll() is not called before expiration of this timeout, then the consumer " +
- "is considered failed and the group will rebalance in order to reassign the partitions to another member. ";
+ public static final String MAX_POLL_INTERVAL_MS_DOC = "The maximum delay between invocations of poll() when using "
+ + "consumer group management. This places an upper bound on the amount of time that the consumer can be idle "
+ + "before fetching more records. If poll() is not called before expiration of this timeout, then the consumer "
+ + "is considered failed and the group will rebalance in order to reassign the partitions to another member. "
+ + "For consumers using a non-null group.instance.id
which reach this timeout, partitions will not be immediately reassigned. "
+ + "Instead, the consumer will stop sending heartbeats and partitions will be reassigned "
+ + "after expiration of session.timeout.ms
. This mirrors the behavior of a static consumer which has shutdown.";
public static final String REBALANCE_TIMEOUT_MS_CONFIG = "rebalance.timeout.ms";
- public static final String REBALANCE_TIMEOUT_MS_DOC = "The maximum allowed time for each worker to join the group " +
- "once a rebalance has begun. This is basically a limit on the amount of time needed for all tasks to " +
- "flush any pending data and commit offsets. If the timeout is exceeded, then the worker will be removed " +
- "from the group, which will cause offset commit failures.";
+ public static final String REBALANCE_TIMEOUT_MS_DOC = "The maximum allowed time for each worker to join the group "
+ + "once a rebalance has begun. This is basically a limit on the amount of time needed for all tasks to "
+ + "flush any pending data and commit offsets. If the timeout is exceeded, then the worker will be removed "
+ + "from the group, which will cause offset commit failures.";
public static final String SESSION_TIMEOUT_MS_CONFIG = "session.timeout.ms";
- public static final String SESSION_TIMEOUT_MS_DOC = "The timeout used to detect client failures when using " +
- "Kafka's group management facility. The client sends periodic heartbeats to indicate its liveness " +
- "to the broker. If no heartbeats are received by the broker before the expiration of this session timeout, " +
- "then the broker will remove this client from the group and initiate a rebalance. Note that the value " +
- "must be in the allowable range as configured in the broker configuration by group.min.session.timeout.ms
" +
- "and group.max.session.timeout.ms
.";
+ public static final String SESSION_TIMEOUT_MS_DOC = "The timeout used to detect client failures when using "
+ + "Kafka's group management facility. The client sends periodic heartbeats to indicate its liveness "
+ + "to the broker. If no heartbeats are received by the broker before the expiration of this session timeout, "
+ + "then the broker will remove this client from the group and initiate a rebalance. Note that the value "
+ + "must be in the allowable range as configured in the broker configuration by group.min.session.timeout.ms
"
+ + "and group.max.session.timeout.ms
.";
public static final String HEARTBEAT_INTERVAL_MS_CONFIG = "heartbeat.interval.ms";
- public static final String HEARTBEAT_INTERVAL_MS_DOC = "The expected time between heartbeats to the consumer " +
- "coordinator when using Kafka's group management facilities. Heartbeats are used to ensure that the " +
- "consumer's session stays active and to facilitate rebalancing when new consumers join or leave the group. " +
- "The value must be set lower than session.timeout.ms
, but typically should be set no higher " +
- "than 1/3 of that value. It can be adjusted even lower to control the expected time for normal rebalances.";
+ public static final String HEARTBEAT_INTERVAL_MS_DOC = "The expected time between heartbeats to the consumer "
+ + "coordinator when using Kafka's group management facilities. Heartbeats are used to ensure that the "
+ + "consumer's session stays active and to facilitate rebalancing when new consumers join or leave the group. "
+ + "The value must be set lower than session.timeout.ms
, but typically should be set no higher "
+ + "than 1/3 of that value. It can be adjusted even lower to control the expected time for normal rebalances.";
/**
* Postprocess the configuration so that exponential backoff is disabled when reconnect backoff