mchades commented on code in PR #14963:
URL: https://github.com/apache/gravitino/pull/14963#discussion_r4562681141


##########
docs/migration-guide.md:
##########
@@ -28,6 +28,32 @@ existing deployments. For database backup, schema scripts, 
and rollback commands
   whole Kubernetes pod CIDR, lets those clients choose the recorded address 
again. See
   [HTTP Server](./gravitino-server-config.md#http-server).
 
+### Kafka catalog client upgrade
+- The Kafka catalog now ships the Kafka client 3.9.2 instead of 3.4.0. The 
`gravitino.bypass.`
+  properties are passed to this client, so check them against the
+  [Kafka Admin 
Configs](https://kafka.apache.org/39/documentation.html#adminclientconfigs).
+- The Kafka catalog rejects `gravitino.bypass.config.providers` and 
`gravitino.bypass.config.providers.*`
+  (for example `.class` and `.param.*`), including when they come from
+  `catalogs/kafka/conf/kafka.conf`. Kafka 3.5 added an environment variable 
config provider, and
+  any provider can read the Gravitino server's own environment or files. A 
catalog that still sets
+  them fails on schema and topic operations and on `testConnection`, with an 
error that names the
+  rejected properties. In 1.3, the file and directory providers could be used 
this way.
+- Before upgrading, find Kafka catalogs and `kafka.conf` entries that use 
these properties or
+  `${file:...}`, `${directory:...}`, or `${env:...}` references. Remove the 
provider properties and

Review Comment:
   `file`, `directory`, and `env` are examples of user-chosen provider aliases. 
Please tell operators to read the aliases from 
`gravitino.bypass.config.providers` and search property values for 
`${<alias>:...}` before removing the provider keys. I verified that Kafka 3.4.0 
resolves `${fileProvider:/path/to/settings.properties:timeout}` with the alias 
`fileProvider`. A search limited to the three prefixes here would miss it. 
[Kafka configuration 
providers](https://kafka.apache.org/39/configuration/configuration-providers/)



##########
docs/kafka-catalog.md:
##########
@@ -20,8 +20,21 @@ Besides the [common catalog 
properties](./gravitino-server-config.md#catalog-pro
 | Property Name       | Description                                            
                                                                                
                                                                       | 
Default Value | Required |
 
|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|----------|
 | `bootstrap.servers` | The Kafka broker(s) to connect to, allowing for 
multiple brokers by comma-separating them.                                      
                                                                              | 
(none)        | Yes      |
-| `gravitino.bypass.` | Property name with this prefix passed down to the 
underlying Kafka Admin client for use. (refer to [Kafka Admin 
Configs](https://kafka.apache.org/34/documentation.html#adminclientconfigs) for 
more details) | (none)        | No       |
-
+| `gravitino.bypass.` | Property name with this prefix passed down to the 
underlying Kafka Admin client for use. (refer to [Kafka Admin 
Configs](https://kafka.apache.org/39/documentation.html#adminclientconfigs) for 
more details) | (none)        | No       |
+
+The Kafka catalog does not accept the Kafka config provider properties 
`gravitino.bypass.config.providers`
+and `gravitino.bypass.config.providers.*` (for example 
`gravitino.bypass.config.providers.file.class`).
+They would let a catalog resolve `${env:...}`, `${file:...}`, or 
`${directory:...}` references from the
+Gravitino server's own environment and files. A catalog that sets them, 
whether in the create-catalog
+request or in `catalogs/kafka/conf/kafka.conf`, fails to connect and 
`testConnection` returns an
+error naming the rejected properties. For non-sensitive settings, put the 
literal value in the

Review Comment:
   This renders as one paragraph covering rejected keys, connection failures, 
credentials, and LDAP. Keep the rejected keys and `testConnection` behavior in 
a short paragraph, then give the credential warning a titled `caution` block 
like “Topic names containing dots” below. The JAAS migration link can follow on 
its own. That makes the password warning visible to readers scanning the 
properties table.



##########
docs/gravitino-server-config.md:
##########
@@ -741,7 +741,8 @@ wins. Neither affects schema or table properties.
 
 A catalog property is one of three kinds. Gravitino defines some itself, as 
the settings a catalog
 needs to work. Anything prefixed `gravitino.bypass.` passes straight through 
to the underlying
-system untouched. Anything else Gravitino simply stores for you to use as you 
like.
+system untouched, except where a catalog documents rejected properties, such 
as the Kafka config

Review Comment:
   The Kafka example interrupts the explanation of the three property types. 
The bypass rule could read “Gravitino forwards `gravitino.bypass.` properties 
to the underlying system unless the catalog rejects them.” Put the Kafka link 
after the sentence about stored properties, so readers get the full 
classification before the provider-specific example.



-- 
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]

Reply via email to