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

verifier: fix lastConsumableOffsets #61

Merged
merged 1 commit into from
Dec 5, 2024

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
2 checks passed
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.

2 participants