davsclaus opened a new pull request, #30795: URL: https://github.com/apache/camel/pull/30795
_Claude Code on behalf of Claus Ibsen (davsclaus)_ [CAMEL-27549](https://issues.apache.org/jira/browse/CAMEL-27549) Many camel-kafka options are passed straight to a Kafka client config (`lingerMs` is `linger.ms`, and so on), and their descriptions were copied from the Kafka documentation years ago. #30789 found one that had gone stale (`maxPartitionFetchBytes`), so this PR checks all of them. It compares the 74 options of camel-kafka and camel-kafka-share that map to a Kafka config key with the documentation in kafka-clients 4.4.0 (the `ConfigDef` of `ConsumerConfig` and `ProducerConfig`), and rewrites the ones that differ, using Kafka's wording with the Camel option names. **Wrong** - `autoCommitEnable`, `autoCommitIntervalMs`: said offsets are committed to ZooKeeper - `bufferMemorySize`: referred to `block.on.buffer.full`, which no longer exists (the producer blocks for `maxBlockMs`) - `requestTimeoutMs` (producer): described the old Scala producer's `request.required.acks` timeout, not the client request timeout - `lingerMs`: said the default is 0; it is 5 since Kafka 4.0, and the Camel default was already 5 - `retries`: said records can be reordered with `max.in.flight.requests.per.connection` set to 1; Kafka says greater than 1 - `metricReporters`: said the JmxReporter is always included; since Kafka 4.0 it must be listed explicitly - `keySerializer`: said it defaults to the value serializer; the Camel default is `StringSerializer` **Outdated or incomplete** - `maxInFlightRequest`: now says that ordering is kept with idempotence (the default) - `partitioner`: no more "sub-topics"; describes the sticky partitioning of records without a key - `reconnectBackoffMs`: the base backoff for all clients, growing up to `reconnectBackoffMaxMs` - `sslProtocol`, `sslEnabledProtocols`: no more "Java 11 or newer, TLSv1.2 otherwise"; the defaults (`TLSv1.3`, `TLSv1.2,TLSv1.3`) are now shown in the docs - `sessionTimeoutMs`, `heartbeatIntervalMs`: only used with `groupProtocol=classic` - `maxRequestSize`: caps the uncompressed record batch size **Small gaps** - `sendBufferBytes`, `receiveBufferBytes`: -1 means the OS default (`sendBufferBytes` was only "Socket write buffer size") - `sslKeystoreType`, `sslTruststoreType`: list the supported values JKS, PKCS12 and PEM - `deliveryTimeoutMs`: should be at least `requestTimeoutMs` + `lingerMs` - `maxPollIntervalMs`: the docs now show the Kafka default 300000 - `valueSerializer`: now names the `Serializer` interface, like `keySerializer` - `kerberosPrincipalToLocalRules`: the `{username}/{hostname}@{REALM}` example lost its `@` in the generated docs. The description generator removes every `@`, and no description in the catalog has one, so the form is now described in words. Only documentation and `defaultValue` metadata change; the values passed to Kafka are the same. `maxPartitionFetchBytes` and the `fetchMaxBytes` comment are left to #30789 (CAMEL-25021: camel-kafka – a record larger than maxPartitionFetchBytes is still fetched) to avoid conflicts. Not changed: Camel's default `partitionAssignor` is only `RangeAssignor`, while Kafka's default is `[RangeAssignor, CooperativeStickyAssignor]`. Aligning that would change behaviour, so it is left for a separate discussion. The catalog JSON and the component and endpoint DSLs are regenerated. The unit tests of camel-kafka, camel-kafka-common and camel-kafka-share pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
