Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Conversation

@WillemKauf
Copy link
Contributor

This didn't account for tombstones being produced for the same key later in the log.

Fix the logic by adding a new latestKoByPartition map which tracks the last offset for a given key. By using it in combination with latestKvByPartition, we can conclude which non-tombstone record/key has the highest offset for a given partition.

@WillemKauf
Copy link
Contributor Author

Green CI here: redpanda-data/redpanda#24187

@WillemKauf WillemKauf requested a review from bashtanov December 5, 2024 14:43
This didn't account for tombstones being produced for the same key
later in the log.

Fix the logic by adding a new `latestKoByPartition` map which
tracks the last offset for a given key. By using it in combination
with `latestKvByPartition`, we can conclude which non-tombstone record/key
has the highest offset for a given partition.
@WillemKauf WillemKauf merged commit 1b80376 into redpanda-data:main Dec 5, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants