Skip to content

Conversation

@lucliu1108
Copy link
Contributor

@lucliu1108 lucliu1108 commented Oct 24, 2025

What

Ticket: https://issues.apache.org/jira/browse/KAFKA-19807
Follow up on #20757, add tests that:

  1. Test member with topology that triggers internal topic auto creation
  2. Test member heartbeat under dynamic configuration
    (streams.num.standby.replicas) change
  3. Test membership expiring and rejoining
  4. Test member heartbeat before and after group coordinator's restart

Reviewers: @lucasbru

@github-actions github-actions bot added triage PRs from the community core Kafka Broker tests Test fixes (including flaky tests) labels Oct 24, 2025
@lucasbru lucasbru requested a review from Copilot October 24, 2025 07:54
@lucasbru lucasbru self-assigned this Oct 24, 2025
@lucasbru lucasbru self-requested a review October 24, 2025 07:54
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds comprehensive integration tests for the StreamsGroupHeartbeat RPC, validating group coordinator behavior across various scenarios including internal topic creation, dynamic configuration changes, member expiration/rejoining, and coordinator restarts.

Key changes:

  • Added four new integration tests for different StreamsGroupHeartbeat scenarios
  • Implemented helper methods for topology creation and task ID conversion
  • Configured test-specific cluster properties for heartbeat and session timeouts

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


streamsGroupHeartbeatResponse1 = connectAndReceive[StreamsGroupHeartbeatResponse](streamsGroupHeartbeatRequest1)
streamsGroupHeartbeatResponse1.data.errorCode == Errors.NONE.code() &&
streamsGroupHeartbeatResponse1.data.standbyTasks()!= null
Copy link

Copilot AI Oct 24, 2025

Choose a reason for hiding this comment

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

Missing space before != operator. Should be != null instead of != null.

Suggested change
streamsGroupHeartbeatResponse1.data.standbyTasks()!= null
streamsGroupHeartbeatResponse1.data.standbyTasks() != null

Copilot uses AI. Check for mistakes.
Copy link
Member

@lucasbru lucasbru left a comment

Choose a reason for hiding this comment

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

@lucliu1108 You need to add the right header to the file

@lucasbru
Copy link
Member

@lucliu1108 You need to add the right header to the file (meant to comment in this PR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker tests Test fixes (including flaky tests) triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants