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

KAFKA-18039: Test all versions of quorum responses in RequestResponseTest #17873

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

peterxcli
Copy link
Contributor

@peterxcli peterxcli commented Nov 20, 2024

Following should support accepting version as they have more than one version

case BEGIN_QUORUM_EPOCH: return createBeginQuorumEpochResponse();
case END_QUORUM_EPOCH: return createEndQuorumEpochResponse();
case DESCRIBE_QUORUM: return createDescribeQuorumResponse();

Related links

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

- Modified createDescribeQuorumResponse, createEndQuorumEpochResponse, and createBeginQuorumEpochResponse methods to accept a version parameter.
- Adjusted logic to set properties based on the version, ensuring compatibility with different response versions.
- Added node endpoint handling for EndQuorumEpochResponse and BeginQuorumEpochResponse based on version checks.
@github-actions github-actions bot added tests Test fixes (including flaky tests) clients small Small PRs labels Nov 20, 2024
@peterxcli
Copy link
Contributor Author

@ahuang98 Hi, This PR is ready, could you please take a look, thanks!

Copy link
Contributor

@ahuang98 ahuang98 left a comment

Choose a reason for hiding this comment

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

lgtm! thanks for the quick changes

.setCurrentVoters(singletonList(replicaState))
.setObservers(singletonList(replicaState));
DescribeQuorumResponseData.TopicData topicData = new DescribeQuorumResponseData.TopicData()
.setTopicName("topic1")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should we just make this __cluster_metadata

Copy link
Contributor Author

@peterxcli peterxcli Nov 27, 2024

Choose a reason for hiding this comment

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

@ahuang98 Thanks, fixed

@peterxcli peterxcli requested a review from ahuang98 November 27, 2024 03:29
Copy link
Contributor

@ahuang98 ahuang98 left a comment

Choose a reason for hiding this comment

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

Looks good to me, @cmccabe @jsancio are you able to approve and merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clients small Small PRs tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants