0xffff-zhiyan commented on PR #21053: URL: https://github.com/apache/kafka/pull/21053#issuecomment-3682867705
`KafkaConfigSchema` is initialized in `KafkaRaftServer` and depends on config definitions from the `core` module (e.g., `KafkaConfig.configDef`, `LogConfig.configDefCopy`), we cannot build the whitelist in the `metadata` module due to module dependency constraints. I found a solution to initialize the whitelist in `ConfigurationDelta` during `KafkaRaftServer` startup by calling `ConfigurationDelta.initializeValidConfigs()` with the set of valid dynamic config names collected from the `core` module. This whitelist is stored in a static `AtomicReference<Set<String>>` field, ensuring one-time initialization. The `apply()` method then uses this whitelist to filter out invalid/deprecated configurations. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
