How to Upgrade to Apache Kafka 4.4: Startup Failures, Rollback Limits and Renamed Metrics
Kafka 4.4.0 adds stricter startup checks and a storage format older brokers cannot read. Here is how to upgrade without a surprise.
On this page 8 sections
Apache Kafka 4.4.0, released October 22, 2026, upgrades in place from any 3.3.x through 4.3.0 release. Check three things first. Brokers with a JWKS endpoint now fail to start without audience and issuer settings. Duplicate assignor names now fail startup. Storage directories formatted by the 4.4 tool cannot be started by older brokers.
Backtrace tests developer tools against real codebases, and a Kafka upgrade is a good example of a release where the headline features matter less than the startup checks. This guide is for backend and platform engineers who run self-managed Kafka clusters. It covers startup failures, rollback limits, a rolling upgrade order, renamed metrics and the new features worth enabling later, as of November 18, 2026.
What Changed in Apache Kafka 4.4 That Can Break an Upgrade?
Four changes can stop a working cluster: a stricter OAUTHBEARER startup check, a duplicate assignor name check, a keystore type change, and a storage format that older brokers cannot read. The rest of the release is mostly additive. Each of these four shows up at startup or at rollback.
According to Confluent's 4.4.0 release announcement, the release carries 25 KIPs (Kafka Improvement Proposals) and 963 commits since 4.3.0. That is a normal minor release by volume. The risk sits in a handful of behavior changes, not in the count.
Read the notable changes list once, then sort every item into one of three buckets. Bucket one fails startup. Bucket two changes names or metrics. Bucket three is a new feature you can ignore until the cluster is calm.
Which Startup Failures Should You Fix Before Rolling Brokers?
Fix three configurations before the first broker restarts. First, set expected audience and issuer for any OAUTHBEARER setup. Second, remove duplicate names from group.consumer.assignors. Third, confirm your PEM keystore setup still works with the new default keystore type. A broker that fails to start mid-roll costs you capacity while you debug.
The Apache Kafka 4.4 upgrade notes say the broker-side OAUTHBEARER JWT validator now fails fast at startup when a JWKS endpoint is set but sasl.oauthbearer.expected.audience or sasl.oauthbearer.expected.issuer is missing. Brokers that used to start without them will now refuse to. To accept tokens regardless of audience or issuer, you must set sasl.oauthbearer.allow.unverified.audience or sasl.oauthbearer.allow.unverified.issuer to true. Both default to false.
Treat that opt-out as a last resort. Setting the real audience and issuer closes a gap that was open before. An unverified audience means any token from your identity provider is accepted, including ones minted for other services.
The second failure is quieter. group.consumer.assignors now fails broker startup with a ConfigException when two configured assignors resolve to the same name. That happens when a built-in is listed once by name and once by class name. Search your broker configs for both forms.
The third is the keystore change. In-memory keystores used for PEM certificates now use the type from KeyStore.getDefaultType() instead of a hardcoded PKCS12. On a standard JVM that is usually the same thing. On a customized security provider setup it may not be, so test TLS on one broker first.
Why Is Rollback Harder After Formatting Storage With the 4.4 Tool?
Rollback is harder because storage directories formatted by the 4.4 kafka-storage tool are no longer forward-compatible. A broker must be the same version as, or newer than, the tool that formatted its directory, whatever --release-version you chose at format time. A 4.3 broker cannot start on a directory the 4.4 tool formatted.
The practical rule follows from that. Do not format new nodes with the 4.4 tool while you still might roll back. Upgrade existing nodes first, let the cluster settle for a few days, and add or replace nodes afterward. This is the Kafka documentation's KIP-1170 change, and the rollback rule is our reading of it.
Streams applications have their own downgrade trap. Kafka Streams now supports static membership with the Streams Rebalance Protocol. Brokers older than 4.4 reject group.instance.id on the streams group heartbeat with INVALID_REQUEST, which is fatal and shuts the client down. Remove group.instance.id from those applications and restart them before you downgrade brokers below 4.4.
The safest plan is simple. Keep the Streams change out of the upgrade window. Upgrade brokers first, then adopt the new Streams features in a later release of your own applications.
How Do You Run a Rolling Kafka 4.4 Upgrade in the Right Order?
Roll one node at a time, check health between each, and keep the metadata version unchanged until the cluster is stable. A common order is controllers first, then brokers. Follow the server upgrade steps in the Kafka documentation for your starting version, since the path differs between 3.3.x and 4.3.
Before you start, capture a baseline you can compare against. These four commands give you the cluster state, the quorum status, the finalized features and the supported API versions:
bin/kafka-metadata-quorum.sh --bootstrap-server broker1:9092 describe --status
bin/kafka-features.sh --bootstrap-server broker1:9092 describe
bin/kafka-topics.sh --bootstrap-server broker1:9092 --describe --under-replicated-partitions
bin/kafka-cluster.sh api-versions --bootstrap-server broker1:9092The last command is new in 4.4. It replaces kafka-broker-api-versions.sh and accepts both --bootstrap-server and --bootstrap-controller. Save the output, because it is the cheapest way to prove what a node supported before you touched it.
After each restart, wait until the under-replicated partition list is empty again. Then move on. Rushing here is how one slow broker becomes two. If you want a stricter pattern, upgrade a single broker first and let it serve traffic for a while, the same way our blue-green versus canary comparison treats a canary.
Brokers are also JVM processes. If you run them on an AVX-512 capable host, check your Java build too. Calif reported code execution against Kafka brokers after login, and our Java4Shell patching guide covers the fixed builds. Do the Java patch and the Kafka upgrade in separate windows, so a failure has one obvious cause.
Which Metrics and Names Need Updating After the Upgrade?
Several Yammer-based group coordinator metrics are deprecated and will be removed in Kafka 5.0, along with broker.id. Update dashboards and alerts now, while both names still work. The replacements below come from the Kafka upgrade notes.
| Deprecated name | Replacement |
|---|---|
| kafka.coordinator.group:type=GroupMetadataManager,name=NumGroups | kafka.server:type=group-coordinator-metrics,name=group-count,protocol=classic |
| kafka.coordinator.group:type=GroupMetadataManager,name=NumOffsets | kafka.server:type=group-coordinator-metrics,name=offset-count |
| NumGroups for Preparing, Completing, Stable, Dead and Empty states | kafka.server:type=group-coordinator-metrics,name=classic-group-count,state=<state> |
| broker.id | node.id |
| kafka-broker-api-versions.sh | kafka-cluster.sh api-versions |
Tiered storage plugins now receive node.id as well as broker.id. Plugins should read node.id, because broker.id will no longer be passed to RemoteStorageManager and RemoteLogMetadataManager implementations in Kafka 5.0. Check any custom plugin you run.
If you ship broker metrics through an OpenTelemetry Collector, update the metric names there too. Our guide to migrating off the Collector batch processor is a useful companion, since both changes touch the same pipeline. A renamed metric that silently stops reporting looks exactly like a healthy cluster.
Which New Kafka 4.4 Features Can Wait Until Later?
Most new features should wait until the cluster has run on 4.4 for a few days. Share group dead-letter queues, delayed tiered storage upload and asynchronous bootstrap resolution are all opt-in. None of them is a reason to rush the upgrade.
Share group dead-letter queues are the most useful. Records released beyond the max delivery count, or rejected by the share consumer, become eligible for the DLQ once the share.version feature is upgraded to 2. You then set errors.deadletterqueue.topic.name on the share group. If auto-creation is off, you create the DLQ topic yourself and set errors.deadletterqueue.group.enable to true on it.
Be careful with asynchronous bootstrap resolution. A positive bootstrap.resolve.timeout.ms makes the client constructor return immediately, and a failure surfaces later as BootstrapResolutionException. The notes call both features evolving, so they may change in a minor release. Kafka Streams and Kafka Connect ignore a positive value and log a warning.
One Connect change is worth a look. Setting internal.topics.automatic.creation.enable to false makes workers fail at startup if their internal topics are missing, and a new connect-internal-topics.sh tool creates them by hand. That is a good fit for locked-down environments, where a surprise topic creation is itself an incident.
How Do You Verify the Cluster After the Upgrade?
Verify three things after the last node restarts: replication health, consumer lag and error rates. Compare each against the baseline you captured before the first restart. A cluster that looks quiet is not proof of health, because a renamed metric can go silent without any alert.
Start with replication. The under-replicated partition list should be empty and stay empty. Then check consumer lag for your busiest groups, and confirm the lag trend matches what it was before the upgrade. Our primer on data pipeline observability basics explains which freshness and lag signals to keep.
Finally, look at producers. Retries during a rolling restart are normal, and duplicates are not acceptable. If any producer has idempotence turned off, our guide to making API retries safe with idempotency keys explains the same principle at the API layer. Backtrace's editors compared the steps above with the Apache and Confluent material published for 4.4.0.
Conclusion: Upgrade Brokers First, Adopt Features Later
Fix the OAUTHBEARER and assignor configs, hold off formatting new storage, roll one node at a time and update your dashboards. Then enable share group dead-letter queues once the cluster has been stable for several days. The upgrade is routine when the four startup and rollback traps are handled before the first restart.