mirror of https://github.com/apache/kafka.git
Handle local log deletion when remote.log.copy.disabled=true based on the KIP-950. When tiered storage is disabled or becomes read-only on a topic, the local retention configuration becomes irrelevant, and all data expiration follows the topic-wide retention configuration exclusively. - added remoteLogEnabledAndRemoteCopyEnabled method to check if this topic enables tiered storage and remote log copy is enabled. We should adopt local.retention.ms/bytes when remote.storage.enable=true,remote.log.copy.disable=false. - Changed to use retention.bytes/retention.ms when remote copy disabled. - Added validation to ask users to set local.retention.ms == retention.ms and local.retention.bytes == retention.bytes - Added tests Reviewers: Kamal Chandraprakash<kamal.chandraprakash@gmail.com>, Satish Duggana <satishd@apache.org>, Christo Lolov <lolovc@amazon.com> |
||
---|---|---|
.. | ||
api/src | ||
src |