Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

configConsumer behaviorAdminClient behaviorDescription

client.dns.lookup, 

bootstrap.servers

use ClientUtils.parseAndValidateAddresses to get InetSocketAddress of broker,

and to sendMedatataRequest to the broker.

use ClientUtils.parseAndValidateAddresses to get InetSocketAddress of broker,

and to send MedatataRequest to the broker.


Both clients will take same action
default.api.timeout.msThe consumer will retry until the timeout is reached

The AdminClient will retry until the timeout is reached

or the number of retries exceeds the limit

AdminClient does the same with Consumer since the default of `retries` is In Integer.MaxValue

and have the same default timeout value  

sessionrequest.timeout.msOnly used in ConsumerCoordinatornot usedhave no effect to remove this config

Used by NetworkClient for individual rpcs to await

acknowledgment from servers


Used by KafkaAdminClient to decide whether each Call  is timeout,

and the timeout for NetworkClient is 3600000

There is a small difference wheras the result are the same.

connections.max.idle.ms,

reconnect.backoff.ms,

reconnect.backoff.max.ms,

send.buffer.bytes,

receive.buffer.bytes,

socket.connection.setup.timeout.ms,

socket.connection.setup.timeout.max.ms

Used to construct NetworkClientUsed to construct NetworkClientBoth clients will take same action

retry.backoff.ms

The amount of time to wait before attempting to retry a failed

ListOffsetsRequest rpc and MetadataRequest rpc

The amount of time to wait before attempting to retry a failed

ListOffsetsRequest rpc and MetadataRequest rpc

Both clients will take same action

client.id

just an identifier
have no impact

metadata.max.age.ms

The period of time to evict metadata cache for `ConsumerMetadata`

The period of time to evict metadata cache for `AdminMetadataManager`There may be difference in implementation details, the metadata cache will have the same expire time.

metric.reporters, 

and all other metric releated configs

Used to get client metricsUsed to get client metricshave no impact

security.protocol,

and all other security related configs

Used to establish security connectionUsed to establish security connectionBoth clients will take same action
retriesConsumer will retries until default.api.timeout.ms is reacheddefault value is Integer.MaxValue

The AdminClient will act the same with Consumer by default, and we can set a config to control how many

times we can retry

request.timeout.ms

This is used when getting end offsets, I think this is a

impletion gap of KIP-266 and should be fixed by using 

default.api.timeout.ms 

Will use default.api.timeout.ms instead of request.timeout.ms , This is a small bug and will be fixed in

a separate PR

So we can conclude this is a compatible change and the transition won't be noticed.

...