Skip to content

MINOR: Add default for EndOffset and Epoch in FetchSnapshotResponse.#11014

Closed
tychedelia wants to merge 1 commit into
apache:trunkfrom
tychedelia:trunk
Closed

MINOR: Add default for EndOffset and Epoch in FetchSnapshotResponse.#11014
tychedelia wants to merge 1 commit into
apache:trunkfrom
tychedelia:trunk

Conversation

@tychedelia
Copy link
Copy Markdown
Contributor

@tychedelia tychedelia commented Jul 9, 2021

This is extremely, extremely minor.

Our Rust protocol impl is using default values for some serialization logic, and I noticed in doing a review for tychedelia/kafka-protocol-rs#1 that there's an inconsistency between FetchSnapshotResponse and FetchSnapshot, namely, FetchSnapshot provides default values for these fields.

Without defaults, we're constructing the default with 0, which I'm concerned may be a valid state for the struct (as opposed to -1).

It looks like this is for Raft (??) so may actually be totally and completely irrelevant for end users of our lib, in which case feel free to close. :)

@tychedelia tychedelia closed this Aug 26, 2021
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.

1 participant