Versions Compared

Key

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

...

Current state["Under Discussion"]

Discussion thread: here

JIRA: KAFKA-15777

Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).

...

When remote storage is enabled on a topic, and the consumer is doing backfill, then the data is read from the remote storage. Currently, Kafka remote storage supports reading data only from the first remote partition in the given FETCH request (see KAFKA-14915). The default value of max.partition.fetch.bytes  is configured to 1 MB. Reading one 1 MB of data per FETCH request from remote, increases the round-trip time for the consumer and the cloud storages provider connectors are often tuned to read data in chunks of 4 MB. 

...

  • Introduce new remote.max.partition.fetch.bytes consumer config, with default value to 1 MB. If not configured, fallback to use max.partition.fetch.bytes value.
  • Bump FetchRequest to v18 to add the RemotePartitionMaxBytes field to propagate the value configured on the consumer to the broker. 

...

If the remote.max.partition.fetch.bytes is not configured / FETCH request is from the old client, then it fallbacks to the use the max.partition.fetch.bytes  config.

Compatibility, Deprecation, and Migration Plan

...