ISSUE-408 Mark underscored topics as internal (#430)

* ISSUE-408 Mark underscored topics as internal

* ISSUE-408 Mark underscored topics as internal
This commit is contained in:
German Osin 2021-05-07 18:06:02 +03:00 committed by GitHub
parent 632bcd20e9
commit a427a55c30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,9 @@ public class ClusterUtil {
public static InternalTopic mapToInternalTopic(TopicDescription topicDescription) {
var topic = InternalTopic.builder();
topic.internal(topicDescription.isInternal());
topic.internal(
topicDescription.isInternal() || topicDescription.name().startsWith("_")
);
topic.name(topicDescription.name());
List<InternalPartition> partitions = topicDescription.partitions().stream().map(