Kafka Tiered-Storage Failure
First separate local Kafka storage from the remote-storage plugin and object store.
Classify the Failure
Section titled “Classify the Failure”| Symptom | Area |
|---|---|
| Remote copy lag grows | Upload throughput, plugin queue, object store, auth |
| Remote fetch errors | Missing/corrupt object, read auth, network, plugin |
| Remote delete errors | Delete auth, retention, object lock, plugin |
| Local disk fills despite tiering | Copy not complete, local retention, cleanup delay |
| Historical fetch is slow | Cold-read latency, cache, object-store/network limits |
Capture Evidence
Section titled “Capture Evidence”Collect RemoteCopy*, RemoteFetch*, RemoteDelete*, lag and queue metrics; broker/plugin logs; affected topic-partitions/segments; topic and broker remote-storage configuration; object-store request IDs; and recent credential or lifecycle-policy changes.
kafka-configs.sh --bootstrap-server kafka:9092 \ --entity-type topics --entity-name orders --describekafka-log-dirs.sh --bootstrap-server kafka:9092 \ --describe --topic-list ordersDiagnose
Section titled “Diagnose”- Confirm the local replica and partition leader are healthy.
- Verify remote-storage manager and metadata-manager classes/configuration on all relevant brokers.
- Check object-store DNS, TLS, credentials, permissions, quotas, throttling, lifecycle rules, and immutability locks.
- Compare remote object/metadata identity with the affected partition and leader epoch.
- Check local and total retention limits plus copy/delete lag.
Recover
Section titled “Recover”- Restore plugin/object-store connectivity and authorization.
- Remove unintended object-store throttles or lifecycle deletion.
- Add local capacity while copy backlog drains.
- Repair or restore remote objects only through the remote-storage implementation's supported procedure.
- Keep local replicas until remote copy completion is confirmed.
Danger
Do not delete local segments to force a remote read and do not edit remote metadata manually. A remote object without consistent Kafka remote metadata is not a valid recovery.
Kafka 4.4 Checks
Section titled “Kafka 4.4 Checks”remote.copy.lag.ms and remote.copy.lag.bytes can intentionally delay upload. Confirm these topic settings before treating the delay as a fault. Future-timestamp retention behavior also changed; review timestamps when local retention appears surprising.
Verify
Section titled “Verify”Copy/fetch/delete errors stop, lag drains, historical reads succeed, local usage follows policy, and failover to another replica still accesses the expected remote data.
Prevent Recurrence
Section titled “Prevent Recurrence”Monitor remote operation errors/latency/lag, object-store quotas and credential expiry, local headroom while remote is unavailable, and regularly test historical reads and broker failover.