Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

[BUGFIX] handle unsupported ApiVersionsRequest when channelPrepare #689

Conversation

wenbingshen
Copy link
Contributor

fixes #688

Motivation

if enable sasl/plain, the apiVersionRequest request will fail when the client use higher than the Kafka-2.0 version protocol.

Modifications

Do special processing for unsupported ApiVersionsRequest like KafkaCommandDecoder's byteBufToRequest, and return UNSUPPORTED_VERSION error to the client.

@wenbingshen
Copy link
Contributor Author

@BewareMyPower PTAL, Thanks. :)

@BewareMyPower
Copy link
Collaborator

I merged this PR first. I think we can add test for highest version Kafka client at the moment later.

@BewareMyPower BewareMyPower merged commit d7b763c into streamnative:master Aug 31, 2021
@wenbingshen
Copy link
Contributor Author

I merged this PR first. I think we can add test for highest version Kafka client at the moment later.

You are right, I can add a test for this.

BewareMyPower pushed a commit that referenced this pull request Sep 1, 2021
fixes #688 

### Motivation
if enable sasl/plain, the apiVersionRequest request will fail when the client use higher than the Kafka-2.0 version protocol.

### Modifications
Do special processing for unsupported ApiVersionsRequest like KafkaCommandDecoder's byteBufToRequest, and return UNSUPPORTED_VERSION error to the client.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] handle unsupported ApiVersionsRequest when channelPrepare
2 participants