You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "earlcoder (via GitHub)" <gi...@apache.org> on 2026/04/03 20:09:14 UTC

[PR] Apply LinkedIn patches to Apache Kafka 3.6.0 — ZK→KRaft path [kafka]

earlcoder opened a new pull request, #21955:
URL: https://github.com/apache/kafka/pull/21955

   ## Apply LinkedIn patches to Apache Kafka 3.6.0
   
   This PR ports all LinkedIn-specific functionality from the 3.0-li branch onto
   the upstream Apache Kafka 3.6.0 base. This is the foundation for migrating
   LinkedIn's Kafka infrastructure from ZooKeeper to KRaft.
   
   ### Why: ZK→KRaft migration
   
   LinkedIn's Kafka clusters are hitting znode pressure limits on ZooKeeper. KRaft
   eliminates ZK entirely, but the migration tooling requires Kafka 3.6+. This PR
   gets the fork to 3.6, enabling the path:
   
   ```
   3.0-li (current) → 3.6-li (this PR) → 3.9-li (next) → KRaft migration
   ```
   
   ### What's ported
   
   All LinkedIn-specific functionality from 474 patches on the 3.0 branch,
   adapted for 3.6 APIs:
   
   - **Preferred/dedicated controllers** (process.roles=controller, not combined mode)
   - **LiCombinedControl** request merging and decomposition
   - **Observer and QuotaV2Handler** lifecycle hooks
   - **LiCreateTopicPolicy** (min replication factor enforcement)
   - **Custom metrics**: RequestsPerSecAcrossVersions, ResponseBytes, MetadataAllTopics, long-tail produce request logging
   - **Operational features**: heap dump scheduling, controlled shutdown safety checks, maintenance broker list, ZK pagination, auditing hooks
   - **KafkaActions/NoOpKafkaActions** for broker lifecycle events
   - **6 LI-specific ApiKeys**: LI_COMBINED_CONTROL, LI_MOVE_CONTROLLER, LI_CONTROLLED_SHUTDOWN_SKIP_SAFETY_CHECK, LI_CREATE/DELETE/LIST_FEDERATED_TOPIC_ZNODES
   
   ### Key migration changes (3.0 → 3.6)
   
   - **Scala 2.12 → 2.13**: `JavaConverters` → `jdk.CollectionConverters`, procedure syntax removed, `.retain` → `.filterInPlace`
   - **ApiVersion → MetadataVersion**: `IBP_` enum constants replace `KAFKA_` constants
   - **AlterIsrManager → AlterPartitionManager**
   - **Module splits**: `LogConfig`, `LogDirFailureChannel` → storage module; `ShutdownableThread`, `KafkaScheduler` → server.util
   - **KafkaMetricsGroup**: Kept as Scala trait (upstream moved to Java class) — many LI files depend on mixin syntax
   - **shuttingDownBrokerIds**: `Set[Int]` → `Map[Int, Long]` (LI adds shutdown epochs)
   - **Guava removal**: `ImmutableMap`/`LoadingCache` → `java.util.Collections`/`ConcurrentHashMap`
   
   ### Testing
   
   - [x] `:core:compileScala` — BUILD SUCCESSFUL (0 errors)
   - [x] `:clients:compileJava` — BUILD SUCCESSFUL
   - [x] `:core:compileTestScala` — BUILD SUCCESSFUL (0 errors)
   - [x] `:clients:compileTestJava` — BUILD SUCCESSFUL
   - [ ] Unit test execution (next step)
   - [ ] Integration tests
   
   325 files changed, +18,405 / -727 lines vs upstream 3.6.0.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] Apply LinkedIn patches to Apache Kafka 3.6.0 — ZK→KRaft path [kafka]

Posted by "earlcoder (via GitHub)" <gi...@apache.org>.
earlcoder closed pull request #21955: Apply LinkedIn patches to Apache Kafka 3.6.0 — ZK→KRaft path
URL: https://github.com/apache/kafka/pull/21955


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org