Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tombstone retention #829

Conversation

kbatuigas
Copy link
Contributor

@kbatuigas kbatuigas commented Oct 28, 2024

Description

Support for topic level delete.retention.ms and cluster level tombstone_retention_ms properties, which define the retention limit for tombstone records in compacted topics.

TODO:

Resolves https://github.com/redpanda-data/documentation-private/issues/2600
Review deadline: Nov 12

Page previews

24.3 Beta > Compaction settings > Tombstone record removal
Topic properties > delete.retention.ms
What's new

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

Copy link

netlify bot commented Oct 28, 2024

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 12ee583
🔍 Latest deploy log https://app.netlify.com/sites/redpanda-docs-preview/deploys/6733a6f991973d0008c2f54a
😎 Deploy Preview https://deploy-preview-829--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Deflaimun Deflaimun force-pushed the DOC-386-Document-feature-Tombstone-retention-policies-Support-delete_retention_ms-in-the-way-it-works-in-Kafka branch 2 times, most recently from bf75351 to 60dfd47 Compare October 28, 2024 14:24
@kbatuigas kbatuigas marked this pull request as ready for review November 7, 2024 21:17
@kbatuigas kbatuigas requested a review from a team as a code owner November 7, 2024 21:17
@kbatuigas kbatuigas changed the base branch from main to v-WIP/24.3 November 7, 2024 21:19
@kbatuigas kbatuigas force-pushed the DOC-386-Document-feature-Tombstone-retention-policies-Support-delete_retention_ms-in-the-way-it-works-in-Kafka branch from eb182e0 to 75841d3 Compare November 11, 2024 14:19
Copy link

@WillemKauf WillemKauf left a comment

Choose a reason for hiding this comment

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

It's looking good! A small number of comments on my end.

modules/get-started/pages/whats-new.adoc Outdated Show resolved Hide resolved
@Deflaimun
Copy link
Contributor

@kbatuigas feel free to merge this one when you merge yours
#847


== Tombstone record removal

Compaction also enables deletion of existing records through tombstones. For example, as data is deleted from a source system, clients produce a tombstone record to the log. A tombstone record contains the key and the value `null`. Tombstones signal to brokers and consumers that records with the same key prior to it in the log should be deleted.
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we can add somewhere here what a tombstone is

Choose a reason for hiding this comment

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

Can link to other article in compaction which describes it

[[deleteretentionms]]
==== delete.retention.ms

The retention time (in ms) for tombstone records in a compacted topic. Redpanda removes tombstone records after the retention limit is exceeded.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would remove (in ms) from the description and add a new field "Units: milliseconds " like we have on cluster properties.


You cannot enable `tombstone_retention_ms` if you have enabled any of the Tiered Storage cluster properties `cloud_storage_enabled`, `cloud_storage_enable_remote_read`, and `cloud_storage_enable_remote_write`.

On the topic level, you cannot enable `delete.retention.ms` at the same time as the Tiered Storage topic configuration properties `redpanda.remote.read` and `redpanda.remote.write`.
Copy link
Contributor

@Deflaimun Deflaimun Nov 12, 2024

Choose a reason for hiding this comment

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

can I enable delete.retention.ms topic property if I have the Tiered Storage cluster properties?

Choose a reason for hiding this comment

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

Yes. Cluster properties are coupled and topic properties are coupled but the delete.retention.ms topic property is not coupled to the cluster properties.

Copy link
Contributor

@Deflaimun Deflaimun left a comment

Choose a reason for hiding this comment

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

lgtm. Check comments before merging. If you need to address them later, consider creating a new ticket

@kbatuigas kbatuigas merged commit 58ded83 into v-WIP/24.3 Nov 12, 2024
3 checks passed
@kbatuigas kbatuigas deleted the DOC-386-Document-feature-Tombstone-retention-policies-Support-delete_retention_ms-in-the-way-it-works-in-Kafka branch November 12, 2024 19:06
kbatuigas added a commit that referenced this pull request Nov 13, 2024
Deflaimun pushed a commit that referenced this pull request Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants