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

Fix Heartbeat Response V1+ field ordering #1371

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jessekempf
Copy link

https://kafka.apache.org/11/protocol.html#The_Messages_Heartbeat

The V0 heartbeat response looks like:

Heartbeat Response (Version: 0) => error_code 
  error_code => INT16

The V1 heartbeat response looks like:

Heartbeat Response (Version: 1) => throttle_time_ms error_code 
  throttle_time_ms => INT32
  error_code => INT16

This change makes it so that the V1 heartbeat responses no longer have the error code mistakenly reported as a time.Duration.

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