...
After this process, all servers will be aware of the latest set of internal topics and can cache internal topics in MedatadaCache. Thus, that KafkaApi can construct the metadata response with the information of all clients created internal topics by referring MetadataCache.
...
Internal topic behaviors
Below will be the Kafka allowed operations for internal topics. However, Cluster admins might want to control the operations on internal topics using ACLs as they might be dangerous.
- Internal topic creation will be allowed.
- Internal topic deletion will be allowed except for` __consumer_offsets` and `__transaction_state`.
- Producing to internal topic partitions other than `__consumer_offsets` and `__transaction_state` will be allowed.
- Adding internal topics to transactions will be allowed.
Post ZK world
Client-side:
To get the internal topic information, instead of using the static internal topic testing or implementing their own logic, clients can utilize KafkaAdminClients and make a MetadataRequest (ApiKey.METADATA).
...