Skip to content

kafka: create the consumer offsets topic as a local topic - #31576

Open
andrwng wants to merge 1 commit into
redpanda-data:devfrom
andrwng:cg-local-only
Open

kafka: create the consumer offsets topic as a local topic#31576
andrwng wants to merge 1 commit into
redpanda-data:devfrom
andrwng:cg-local-only

Conversation

@andrwng

@andrwng andrwng commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

The offsets topic has pretty much been local in all but name: it explicitly doesn't construct an archiver, and the local storage layer explicitly prevents truncating it. It's never relied on tiered storage for disaster recovery since that is handled through separate snapshotting code.

This commit makes this explicit, creating the topic as an explicit local topic.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v26.2.x
  • v26.1.x
  • v25.3.x

Release Notes

  • None

The offsets topic has pretty much been local in all but name: it
explicitly doesn't construct an archiver, and the local storage layer
explicitly prevents truncating it. It's never relied on tiered storage
for disaster recovery since that is handled through separate
snapshotting code.

This commit makes this explicit, creating the topic as an explicit local
topic.
Copilot AI lite review requested due to automatic review settings August 13, 2026 19:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR makes the Kafka internal consumer offsets topic (__consumer_offsets) explicitly a local Redpanda topic by setting its redpanda.storage.mode at creation time, aligning the topic configuration with its existing non-tiered behavior in the Kafka subsystem.

Changes:

  • Set topic.properties.storage_mode to model::redpanda_storage_mode::local in consumer_offsets_topic_configuration.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 72 to 75
topic.properties.cleanup_policy_bitflags
= model::cleanup_policy_bitflags::compaction;
topic.properties.storage_mode = model::redpanda_storage_mode::local;
// allow creation even if a consumer group migration is in progress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants