Skip to content

KAFKA-17492: skip KIP-584 features with minVersion of 0 in older RPCs#17143

Closed
cmccabe wants to merge 1 commit intotrunkfrom
cmccabe_KAFKA-17492
Closed

KAFKA-17492: skip KIP-584 features with minVersion of 0 in older RPCs#17143
cmccabe wants to merge 1 commit intotrunkfrom
cmccabe_KAFKA-17492

Conversation

@cmccabe
Copy link
Copy Markdown
Contributor

@cmccabe cmccabe commented Sep 9, 2024

Some older clients will have deserialization problems if a KIP-584 feature's minimum supported level is 0. Therefore, when preparing an ApiVersionResponse for a version less than 4, we must omit features with a minimum supported level of 0. This is reasonable to do because older software could not handle setting these features to a level other than 0 in any case.

A similar problem applies to BrokerRegistrationRequest. Here we must omit features with minVersion = 0 when the RPC version is less than 4.

Note that this fix supersedes an earlier compatibility preservation effort in KAFKA-17011.

Some older clients will have deserialization problems if a KIP-584 feature's minimum supported
level is 0.  Therefore, when preparing an ApiVersionResponse for a version less than 4, we must
omit features with a minimum supported level of 0. This is reasonable to do because older software
could not handle setting these features to a level other than 0 in any case.

A similar problem applies to BrokerRegistrationRequest. Here we must omit features with minVersion
= 0 when the RPC version is less than 4.

Note that this fix supersedes an earlier compatibility preservation effort in KAFKA-17011.
@cmccabe
Copy link
Copy Markdown
Contributor Author

cmccabe commented Sep 10, 2024

This was fixed by #17128. Closing.

@cmccabe cmccabe closed this Sep 10, 2024
@cmccabe cmccabe deleted the cmccabe_KAFKA-17492 branch September 10, 2024 20:02
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