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

[FEATURE] Add commit offset test for Kafka clients of different versions #686

Conversation

wenbingshen
Copy link
Contributor

@wenbingshen wenbingshen commented Aug 27, 2021

Fixes #681 #687

Motivation

#605 added a test framework for Kafka clients of different versions. However, it only added the basic e2e test, an important API commitOffset was not verified.

Modifications

Add commit offset test in BasicEndToEndPulsarTest and BasicEndToEndKafkaTest in io.streamnative.pulsar.handlers.kop.compatibility package.

This feature belongs to the compatibility issue between different versions of kafka client and kop.

@wenbingshen wenbingshen marked this pull request as draft August 28, 2021 02:21
@wenbingshen wenbingshen marked this pull request as ready for review August 28, 2021 16:20
@wenbingshen
Copy link
Contributor Author

wenbingshen commented Aug 28, 2021

@BewareMyPower Please help review this pr. In this pr, I lifted the restriction of Fetch ApiVersion=4. In fact, according to my investigation, the client version of kafka-0.10.0.0 will still send Fetch request with apiversion=2 even when the server returns Fetch ApiVersion=4. Review this pr also need to read this issue #687

Copy link
Contributor Author

@wenbingshen wenbingshen left a comment

Choose a reason for hiding this comment

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

This part of the content is related to the #687

@BewareMyPower BewareMyPower added the type/feature Indicates new functionality label Aug 31, 2021
@BewareMyPower
Copy link
Collaborator

Overall LGTM, just leave one comment.

@BewareMyPower BewareMyPower merged commit 13004f7 into streamnative:master Sep 1, 2021
BewareMyPower pushed a commit that referenced this pull request Sep 1, 2021
…ons (#686)

Fixes #681 #687

### Motivation
#605 added a test framework for Kafka clients of different versions. However, it only added the basic e2e test, an important API commitOffset was not verified.

### Modifications
Add commit offset test in BasicEndToEndPulsarTest and BasicEndToEndKafkaTest in io.streamnative.pulsar.handlers.kop.compatibility package.

This feature belongs to the compatibility issue between different versions of kafka client and kop.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Indicates new functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add commit offset test for Kafka clients of different versions
2 participants