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

DENA-671: Compacted topics validations #27

Merged
merged 5 commits into from
Oct 28, 2024

Conversation

sbuliarca
Copy link
Contributor

Add validations for compacted topics

@sbuliarca sbuliarca requested a review from a team as a code owner October 28, 2024 07:26
Copy link

linear bot commented Oct 28, 2024

Comment on lines 16 to 18
When cleanup policy is 'compact':
- 'retention.ms' must not be specified in the config
- tiered storage must not be enabled
Copy link
Contributor

@matthewhughes-uw matthewhughes-uw Oct 28, 2024

Choose a reason for hiding this comment

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

I'm not familiar with all these settings, so I'm curious: what's the reason for these restrictions?

EDIT: I see you linked some docs for another change utilitywarehouse/kafka-cluster-config#662 (comment) maybe worth linking those here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, added in this commit: 9a1f2c7

@@ -42,6 +46,16 @@ resource "kafka_topic" "good topic" {
"retention.ms" = "86400000"
}
}

# Good compacted topic
Copy link
Contributor

Choose a reason for hiding this comment

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

should there be a bad example here too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, it wouldn't hurt. Added in 9a1f2c7

@sbuliarca sbuliarca merged commit 9c76c8e into config-test-refactor Oct 28, 2024
5 checks passed
@sbuliarca sbuliarca deleted the no-tiered-for-compacted branch October 28, 2024 10:45
sbuliarca added a commit that referenced this pull request Oct 28, 2024
…multiple scenarios (#26)

* refactor: extracted test cases from func & split them into multiple scenarios

* DENA-671: Compacted topics validations (#27)
sbuliarca added a commit to utilitywarehouse/kafka-cluster-config that referenced this pull request Oct 29, 2024
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.

2 participants