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

pkg/kgo: allow marking using an offset #672

Merged
merged 1 commit into from
May 26, 2024

Conversation

sudo-sturbia
Copy link
Contributor

@sudo-sturbia sudo-sturbia commented Feb 1, 2024

Currently when using AutoCommitMarks option the only function available for marking is MarkCommitRecords(rs ...*Record), this requires you to keep Records in memory until they're marked (possibly for prolonged periods of time) unnecessarily since the marking itself doesn't really need anything other than the offsets.

I added a new function MarkCommitOffsets to do the same as MarkCommitRecords but accept a map of EpochOffsets instead, let me know what you think, thank you

Currently marking is only available via records, expose a new function,
MarkCommitOffsets, to allow marking using offsets only.
@twmb
Copy link
Owner

twmb commented Feb 7, 2024

This looks good to me. Are you ok waiting a bit -- maybe a while? This is the only thing that necessitates a minor release right now and I'd like to bundle it with another feature or two, or maybe wait for the Kafka 3.7 release if that's coming out soon enough.

FWIW it looks like 3.7 should release sooner than later: https://cwiki.apache.org/confluence/display/KAFKA/Release+Plan+3.7.0

@sudo-sturbia
Copy link
Contributor Author

Yes, that's okay, it'd be great if it makes it some time soon but I'm not in a rush, thank you

@twmb
Copy link
Owner

twmb commented Mar 4, 2024

Timeline update: I plan to work on 3.7 changes this week or weekend and then merge this into the next minor release. If there's a delay it's because I'm a bit busy at work.

@twmb twmb added the minor label Mar 26, 2024
@twmb twmb mentioned this pull request Mar 26, 2024
12 tasks
@twmb
Copy link
Owner

twmb commented May 26, 2024

Sorry for the delay, the last 3mo were much busier than I anticipated. Releasing imminently!

@twmb twmb merged commit 8807955 into twmb:master May 26, 2024
@twmb twmb removed the minor label May 26, 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.

None yet

2 participants