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

Update skipKeys for internal API keys #683

Closed
wants to merge 1 commit into from
Closed

Conversation

weeco
Copy link
Contributor

@weeco weeco commented Mar 2, 2024

There used to be a typo (API Key 58 / Envelope instead of API Key 57 / UpdateFeatures). I'm not entirely sure what the "Envelope" API does, but I think it was meant to be UpdateFeatures instead.

Ref: https://kafka.apache.org/protocol.html

@@ -337,7 +340,7 @@ func (vs *Versions) versionGuess(opts ...VersionGuessOpt) guess {
//
// TODO: add introduced-version to differentiate some specific
// keys.
skipKeys: []int16{4, 5, 6, 7, 27, 58},
skipKeys: []int16{4, 5, 6, 7, 27, 57, 64, 67},
Copy link
Owner

Choose a reason for hiding this comment

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

Why add UpdateFeatures? It's meant to be supported with/without Kraft. FWIW it's basically so far unused so I'm ok to remove it.

Envelope should still be filtered here, it's Kraft specific for the non-raft broker to forward a request to the raft broker when needed.

+1 for 64 and 67, also both Raft APIs, although this should also probably filter 59, 62, and 63

Copy link
Contributor Author

Choose a reason for hiding this comment

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

UpdateFeatures is only used by brokers to update the list of finalized features or do I missunderstand this API? I think it's not used by clients and therefore I'd consider it part of the "internal" list, but maybe you had different criterias in mind what APIs should go into this list?

I actually thought 58 was a typo for 58, but I wasn't sure what the "Envelope" API does either.

Not sure what API 59, 62 and 63 are, I can't find it in the Apache Kafka protocol docs and they were not reported by Apache Kafka 3.7.0 either.

@twmb twmb added the TODO label May 23, 2024
twmb added a commit that referenced this pull request May 26, 2024
These keys are by Kafka, for Kafka and there are enough differentiating
factors in other keys such that skipping these is fine.

Closes #683.
@twmb
Copy link
Owner

twmb commented May 26, 2024

I've done this more comprehensively in #739, closing this.

@twmb twmb closed this May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants