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-18613: Improve test coverage for missing topics #19189

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

Conversation

lucasbru
Copy link
Member

Tests for joining with missing source topics,
internal topics, incorrectly partitioned topics,
and stale topologies.

This is a stacked PR. Only review commits starting from "KAFKA-18613: Improve test coverage for missing topics"

lucasbru added 8 commits March 6, 2025 17:59
Basic streams group heartbeat handling.

- No support for static membership
- No support for configurations (using constants instead)
- No support for regular expressions
Tests for joining with missing source topics,
internal topics, incorrectly partitioned topics,
and stale topologies.
@lucasbru lucasbru requested a review from cadonna March 12, 2025 14:02
@lucasbru
Copy link
Member Author

@cadonna Could you have a look? I'm adding three tests as a separate PR.

@@ -180,17 +178,13 @@ private static void enforceCopartitioning(final StreamsTopology topology,
x.repartitionSourceTopics().stream().filter(y -> y.partitions() == 0)
).map(StreamsGroupTopologyValue.TopicInfo::name).collect(Collectors.toSet());

if (fixedRepartitionTopics.isEmpty() && flexibleRepartitionTopics.isEmpty()) {
log.info("Skipping the repartition topic validation since there are no repartition topics.");
Copy link
Member Author

Choose a reason for hiding this comment

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

Skipping here is actually not correct - we need to enforce copartitioning also for source topics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant