Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

This page is meant as a template for writing a KIP. To create a KIP choose Tools->Copy on this page and modify with your content and replace the heading with the next KIP number and a description of your issue. Replace anything in italics with your own description.

Status

Current state: Under Discussion

...

While the exclude list of the topic filter is configurable, the ReplicationPolicy interface cannot be configured in a way to enable replicating such topics. Currently, if a user already has business topics ending in for example ".internal" or "-internal", the only option is to implement a custom replication policy and override the isInternalTopic method. The goal of this proposal is to make this behavior configurable.

Public Interfaces

PropertiesDefaultDescription
internal.topic.replication.capability.enabledfalseWhether to enable the ability of replicating internal topics. By default, topics that are considered internal are explicitly excluded from the replication by the replication policy. This also means that business topics that seem internal (for example ending in .internal or -internal) are excluded too. By enabling this configuration, such topics will not be excluded by the replication policy, and it becomes the responsibility of the user to configure the topic filter in a proper way to include / exclude topics.


Proposed Changes

This KIP proposes overriding the isInternalTopic method in the DefaultReplicationPolicy class and change its behavior based on the new configuration property:

...