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

k/server: Support serialisation for fetch v11 (RackId) #890

Merged

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented Mar 18, 2021

Cover letter

KIP-392 introduces fetch v11 with:

  • fetch_rquest::rack_id
  • fetch_response::partition_response::preferred_read_replica

Provide serialisation support, but for now these are ignored.

Tested with librdafka via kafkacat.

librdkafka consume seems to now use v11 instead of v4.

Fixes #883

Signed-off-by: Ben Pope ben@vectorized.io

Release notes

Release note: Serialisation support for KIP-392 / Fetch v11. RackId and PreferredReadReplica are currently ignored,

[KIP-392](https://cwiki.apache.org/confluence/display/KAFKA/KIP-392%3A+Allow+consumers+to+fetch+from+closest+replica)
introduces fetch v11 with:

* fetch_rquest::rack_id
* fetch_response::partition_response::preferred_read_replica

For now these are ignored.

Tested with librdafka via kafkacat

Fixes redpanda-data#883

Signed-off-by: Ben Pope <ben@vectorized.io>
@BenPope BenPope changed the title k/server: Support fetch v11 (RackId) k/server: Support serialisation for fetch v11 (RackId) Mar 18, 2021
@dotnwat
Copy link
Member

dotnwat commented Mar 18, 2021

thank you for the excellent cover letter!

@rkruze is there an easy way to test this with sarama (is that what you mentioned you were using when encountered this?)

BenPope added a commit to BenPope/redpanda that referenced this pull request Mar 18, 2021
Update Sarama to include: IBM/sarama#1898
"Parsing only known control batches value"

`rpk topic consume` now uses fetch v11.

Related PR: redpanda-data#890
"k/server: Support serialisation for fetch v11 (RackId)"

Signed-off-by: Ben Pope <ben@vectorized.io>
BenPope added a commit to BenPope/redpanda that referenced this pull request Mar 18, 2021
* Update Sarama to include: IBM/sarama#1898
* Update mocks

`rpk topic consume` now uses fetch v11.

Related PR: redpanda-data#890
"k/server: Support serialisation for fetch v11 (RackId)"

Signed-off-by: Ben Pope <ben@vectorized.io>
BenPope added a commit to BenPope/redpanda that referenced this pull request Mar 18, 2021
Fix `rpk topic consume`

* Update Sarama to include: IBM/sarama#1898
* Update mocks

`rpk topic consume` now uses fetch v11 implemented in: redpanda-data#890

Signed-off-by: Ben Pope <ben@vectorized.io>
BenPope added a commit to BenPope/redpanda that referenced this pull request Mar 18, 2021
Fix `rpk topic consume`

* Update Sarama to include: IBM/sarama#1898
* Update mocks

`rpk topic consume` now uses fetch v11 implemented in: redpanda-data#890

Signed-off-by: Ben Pope <ben@vectorized.io>
BenPope added a commit to BenPope/redpanda that referenced this pull request Mar 18, 2021
Fix `rpk topic consume`

* Update Sarama to include: IBM/sarama#1898
* Update mocks

`rpk topic consume` now uses fetch v11 implemented in: redpanda-data#890

Signed-off-by: Ben Pope <ben@vectorized.io>
@BenPope
Copy link
Member Author

BenPope commented Mar 18, 2021

Now tested with the latest upstream Sarama via rpk: #898

@emaxerrno emaxerrno merged commit b137cda into redpanda-data:dev Mar 18, 2021
joejulian pushed a commit to joejulian/redpanda that referenced this pull request Mar 10, 2023
Fix `rpk topic consume`

* Update Sarama to include: IBM/sarama#1898
* Update mocks

`rpk topic consume` now uses fetch v11 implemented in: redpanda-data#890

Signed-off-by: Ben Pope <ben@vectorized.io>
joejulian pushed a commit to joejulian/redpanda that referenced this pull request Mar 24, 2023
Fix `rpk topic consume`

* Update Sarama to include: IBM/sarama#1898
* Update mocks

`rpk topic consume` now uses fetch v11 implemented in: redpanda-data#890

Signed-off-by: Ben Pope <ben@vectorized.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kafka: support version 11 of the fetch API
3 participants