Skip to content

Allow Cleanup Policy & Retention to Be Empty to Use Cluster Defaults During Topic Creation #2601

@jichmi

Description

@jichmi

Describe

When creating a new topic in AKHQ, certain fields—specifically: Cleanup Policy and Retention are currently required or always filled with explicit values.

However, in Kafka, these configurations are optional and can be omitted so that the topic inherits the cluster-level default settings (as defined in the broker configs such as log.cleanup.policy, log.retention.ms, log.retention.bytes, etc.).

Requested

During Topic Creation:

  1. Allow Cleanup Policy to be empty, Kafka will use broker-level log.cleanup.policy
  2. Allow Retention to be empty, if left empty, AKHQ should not send these configs. Kafka will apply log.retention.ms or log.retention.bytes defaults

Why this is useful

  • Aligns AKHQ with Kafka’s native behavior
  • Prevents forcing users to define values unnecessarily
  • Avoids conflicts between AKHQ-specified configs and broker-managed governance
  • Makes topic creation simpler and safer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions