Skip to content

Conversation

lucliu1108
Copy link
Contributor

@lucliu1108 lucliu1108 commented Jul 26, 2025

This change adds:

  • Integration test for Admin#describeStreamsGroups API
  • Integration test for Admin#deleteStreamsGroup API

Reviewers: Alieh Saeedi [email protected], Lucas Brutschy
[email protected]

@github-actions github-actions bot added triage PRs from the community core Kafka Broker build Gradle build or GitHub Actions small Small PRs and removed triage PRs from the community labels Jul 26, 2025
@lucliu1108 lucliu1108 changed the title KSTREAMS-7427 Integration test for Streams-related Admin APIs[1/N] KAFKA-19550 Integration test for Streams-related Admin APIs[1/N] Jul 26, 2025
@github-actions github-actions bot removed the small Small PRs label Jul 28, 2025
@aliehsaeedii
Copy link
Contributor

Thanks, @lucliu1108, for the PR. I added a couple of comments/suggestions.

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.

Thanks for the PR! This is mostly looking good to me. I left two comments. The main thing is that I would like to avoid the extra dependency from core -> streams. I think it may be possible, following what I did in AuthorizerIntegrationTest.

@lucasbru lucasbru added the KIP-1071 PRs related to KIP-1071 label Aug 28, 2025
@github-actions github-actions bot added the tests Test fixes (including flaky tests) label Sep 1, 2025
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.

Left a few more minor comments. But this is mostly LGTM

@lucasbru lucasbru requested a review from Copilot September 2, 2025 19:27
Copilot

This comment was marked as outdated.

@lucliu1108 lucliu1108 requested a review from Copilot September 2, 2025 21:07
Copy link
Contributor

@Copilot 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 integration tests for Streams-related Admin APIs, specifically for describeStreamsGroups and deleteStreamsGroups functionality. The changes enable testing of Kafka Streams group management through the Admin client.

Key changes:

  • Added createStreamsGroup helper method to create test Streams groups with proper configuration
  • Enhanced existing group listing tests to include Streams groups
  • Added comprehensive integration tests for describing and deleting Streams groups

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
PlaintextAdminIntegrationTest.scala Added two new test methods and updated existing group listing test to handle Streams groups
IntegrationTestHarness.scala Added helper method to create Streams groups for testing purposes

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

@lucliu1108 lucliu1108 requested a review from lucasbru September 2, 2025 22:16
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.

There are still some whitespace changes

@lucasbru lucasbru changed the title KAFKA-19550 Integration test for Streams-related Admin APIs[1/N] KAFKA-19550: Integration test for Streams-related Admin APIs [1/N] Sep 3, 2025
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.

LGTM, thanks!

@lucasbru lucasbru merged commit a81f08d into apache:trunk Sep 4, 2025
35 of 37 checks passed
@@ -2589,8 +2594,11 @@ class PlaintextAdminIntegrationTest extends BaseAdminIntegrationTest {
shareGroupConfig.put(ConsumerConfig.GROUP_ID_CONFIG, shareGroupId)
val shareGroup = createShareConsumer(configOverrides = shareGroupConfig)

val config = createConfig
client = Admin.create(config)
val streamsGroup = createStreamsGroup(
Copy link
Member

Choose a reason for hiding this comment

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

The consumer may create testTopicName due to a metadata update, causing the subsequent client.createTopics call to fail since the topic already exists.

see https://github.com/apache/kafka/actions/runs/17495296037/job/49695550299?pr=20472

@lucliu1108 WDYT? Perhaps we could create the topic first?

Copy link
Contributor Author

@lucliu1108 lucliu1108 Sep 6, 2025

Choose a reason for hiding this comment

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

That makes sense. Thanks for pointing out! I'll make a patch for that @chia7712

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Patch created: #20496. Thanks! @chia7712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Gradle build or GitHub Actions core Kafka Broker KIP-1071 PRs related to KIP-1071 tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants