Skip to content

SAMZA-2221: Use the KafkaStreamSpec instead of the StreamSpec #1050

Open
dengpanyin wants to merge 1 commit into
apache:masterfrom
dengpanyin:rocks
Open

SAMZA-2221: Use the KafkaStreamSpec instead of the StreamSpec #1050
dengpanyin wants to merge 1 commit into
apache:masterfrom
dengpanyin:rocks

Conversation

@dengpanyin
Copy link
Copy Markdown
Contributor

When creating a new Kafka topic, currenlty StreamSpec is used other than the
KafkaStreamSpec. KafkaStreamSpec contains more properties, such as "retention.ms",
that StreamSpec is not aware of.

@sborya @xinyuiscool @weisong44

…eating a new topic.

When creating a new Kafka topic, currenlty StreamSpec is used other than the
KafkaStreamSpec. KafkaStreamSpec contains more properties, such as "retention.ms",
that StreamSpec is not aware of.
streamConfig.remove(REPL_FACTOR);
}
newTopic.configs(new MapConfig(streamConfig));
newTopic.configs(KafkaStreamSpec.filterUnsupportedProperties(kSpec.getConfig()));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It should be sufficient to pass kSpec.getConfig() and you don't need apply filter again.
toKafkaSpec(...) takes care of filtering it unsupported properties.

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