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

KIP-320: Allow fetchers to detect #968

Merged
merged 4 commits into from
Apr 4, 2023
Merged

KIP-320: Allow fetchers to detect #968

merged 4 commits into from
Apr 4, 2023

Conversation

emasab
Copy link
Contributor

@emasab emasab commented Mar 29, 2023

and handle log truncation. Go changes

and handle log truncation. Go changes
Copy link
Contributor

@milindl milindl left a comment

Choose a reason for hiding this comment

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

Some comments about type, but otherwise okay.

Offset Offset
Metadata *string
Error error
LeaderEpoch *int32
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this just be int32, we can use a negative value (-1) similar to C case (as illustrated inif cLeaderEpoch >= 0).
We can change if it makes sense.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, just for the bindings I've followed the Java client that has an Option so I've put an optional field here, in Python and .NET

@@ -77,6 +77,7 @@ type Message struct {
TimestampType TimestampType
Opaque interface{}
Headers []Header
LeaderEpoch *int32 // LeaderEpoch or nil if not available
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto, the thing about this not being a pointer here, too

@milindl milindl merged commit 640ffe3 into master Apr 4, 2023
@milindl milindl deleted the feature/kip-320 branch April 4, 2023 15:57
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