Skip to content

Conversation

@huoxito
Copy link

@huoxito huoxito commented Jun 11, 2025

This is an attempt to make kafka segment configs optional so bulker can work with providers that do not allow clients to set those configs, AWS MSK for example.

It introduces a new config option KafkaAllowSegmentConfig which is enabled by default, same behaviour as current main branch, but allow users to disable it.

@cubic-dev-ai
Copy link

cubic-dev-ai bot commented Jun 11, 2025

Your cubic subscription is currently inactive. Please reactivate your subscription to receive AI reviews and use cubic.

config["segment.ms"] = fmt.Sprint(c.KafkaTopicSegmentHours * 60 * 60 * 1000)
}
default:
config["compression.type"] = c.KafkaTopicCompression
Copy link
Contributor

Choose a reason for hiding this comment

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

We should set "compression.type" for all modes with map init


switch mode {
case "retry":
config["retention.ms"] = fmt.Sprint(c.KafkaTopicRetentionHours * 60 * 60 * 1000)
Copy link
Contributor

Choose a reason for hiding this comment

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

KafkaRetryTopicRetentionHours


}()
err = bc.topicManager.ensureTopic(bc.retryTopic, 1, bc.topicManager.RetryTopicConfig())
err = bc.topicManager.ensureTopic(bc.retryTopic, 1, bc.topicManager.config.TopicConfig("retry"))
Copy link
Contributor

Choose a reason for hiding this comment

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

bc has config property too

failedTopic = sc.config.KafkaDestinationsDeadLetterTopicName
} else {
err = sc.topicManager.ensureTopic(sc.retryTopic, 1, sc.topicManager.RetryTopicConfig())
err = sc.topicManager.ensureTopic(sc.retryTopic, 1, sc.topicManager.config.TopicConfig("retry"))
Copy link
Contributor

Choose a reason for hiding this comment

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

sc has config property too

@huoxito
Copy link
Author

huoxito commented Sep 28, 2025

thanks for reviewing @absorbb !! just addressed your feedback

@huoxito huoxito requested a review from absorbb September 28, 2025 14:48
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