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:
parent
632bcd20e9
commit
a427a55c30
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue