mchades commented on code in PR #14963:
URL: https://github.com/apache/gravitino/pull/14963#discussion_r4561456977
##########
catalogs/catalog-kafka/src/main/java/org/apache/gravitino/catalog/kafka/KafkaCatalogOperations.java:
##########
@@ -143,6 +148,17 @@ public void initialize(
Collectors.toMap(
e -> e.getKey().substring(CATALOG_BYPASS_PREFIX.length()),
Map.Entry::getValue));
+ List<String> disallowedKeys =
+ bypassConfigs.keySet().stream()
+ .filter(KafkaCatalogOperations::isConfigProviderKey)
+ .sorted()
+ .collect(Collectors.toList());
+ Preconditions.checkArgument(
Review Comment:
[P2] Document the Kafka configuration compatibility changes
This also disables `FileConfigProvider` and `DirectoryConfigProvider`, which
were usable with the old 3.4.0 client. I verified a file-backed catalog works
at the base commit, but its schema operations and `testConnection` fail at
`9979a89`. Removing the provider keys and replacing the `${file:...}` reference
through `alterCatalog` restores access. The guard checks the merged
configuration, so provider settings from server-side `kafka.conf` are affected
too.
Please document the rejected keys and migration in `docs/kafka-catalog.md`
and `docs/migration-guide.md`, and qualify the unrestricted bypass-forwarding
statement in `docs/gravitino-server-config.md`. The Kafka config links still
target 3.4, and the PR's user-facing-change section should say Yes. The upgrade
note should also mention that Kafka 3.9.2 now rejects
`com.sun.security.auth.module.LdapLoginModule` by default.
--
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]