Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: remote.log.metadata.custom.metadata.max.size default value

...

Allowing remote storage plugins to write custom metadata of arbitrary size is not good for the stability of the cluster. The broker should have a configurable limit for their size. If a piece of custom metadata exceeds the limit, the execution of RLMTask.copyLogSegmentsToRemote should be interrupted with an error message. The default value for the limit should be 10 KiB128 B, which is enough to store 10 1024-byte ANSI strings (minus some bytes for e.g. the map structure), which is quite sufficient for the two use cases from the Motivation part and on the other hand is small enough to not be disruptive.

...

Key NameDescriptionValid ValuesDefault Value
remote.log.metadata.custom.metadata.max.sizeThe maximum size of custom metadata in bytes that the broker should accept from a remote storage plugin. If custom  metadata exceeds this limit, the whole segment metadata will not be stored and the remote copying task for this topic-partition will stop with an error.0..Integer.MAX_VALUE

10240

(10 KiB)128

Compatibility, Deprecation, and Migration Plan

...