---
title: "Kafka Schema Registry down: a restarted client stops"
description: "With Schema Registry down a restarted Kafka producer cannot serialize and a restarted consumer stops at the next record, while a warm producer keeps writing."
url: https://monedula.dev/kafka-simulator/scenarios/sr-down-cold-clients/
---

# Kafka Schema Registry down: a restarted client stops

Scenario 25.1.5 · Schema Registry down: a restart stops the client. Schema registry · Intermediate · about 4 min · Apache Kafka 4.4 · Confluent Platform feature.

With SR down a restarted producer cannot serialize and a restarted consumer cannot deserialize. A warm producer next to them keeps writing.

Run it: https://monedula.dev/kafka-simulator/playground/?scenario=25.1.5

## What you start with

Two producers write orders with schema id 1; one consumer reads them. Then the only Schema Registry instance dies and, as in a deploy, p1 and the consumer restart. A restarted process starts with an empty schema cache.

## Step by step

1. **two warm producers, one consumer** (t+0.000s): p1 and p2 write orders with schema id 1 (p2 runs with auto.register.schemas=false); c1 reads them. All three have the id cached. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.5&t=0)
2. **O1 written and read** (t+1.000s): Steady state: no client talks to Schema Registry. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.5&t=1)
3. **sr-1 down** (t+1.300s): The only SR instance dies. Kafka is healthy. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.5&t=2)
4. **p1 restarted: its send fails** (t+1.900s): p1 restarted with an empty schema cache. Its next send must ask SR for the id of orders-value v1, no instance answers, and the serializer throws before the record reaches the batch. Nothing is appended. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.5&t=3)
5. **c1 restarted: stuck at P1** (t+2.900s): c1 restarted too. p2, still warm, keeps writing P1 and P2, but c1 cannot look up the id of P1: it stops at that record. It stays in the group (no rebalance) while its lag grows. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.5&t=4)
6. **SR back: both recover** (t+4.000s): sr-1 is back. c1 looks up id 1, reads P1 and P2 and catches up; p1 resolves the id and its O2 goes through. Both caches are warm again. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.5&t=5)
7. **p2 deploys v2: not registered** (t+4.700s): p2 runs with auto.register.schemas=false and is redeployed with schema v2, which nobody registered. SR is up, but its serializer only looks the schema up, finds no such version and throws: schema not found. Register the version first, from CI. [Open at this step](https://monedula.dev/kafka-simulator/playground/?scenario=25.1.5&t=6)

## The takeaway

A restart turns an SR outage into an application outage: the serializer throws before the record reaches Kafka, the deserializer stops the consumer at the record it cannot decode. Run more than one SR instance, and do not roll clients while SR is down. With auto.register.schemas=false a new version must be registered before the deploy, or the producer stops even with SR up.

## Further reading

- [Confluent documentation](https://docs.confluent.io/platform/current/schema-registry/fundamentals/serdes-develop/index.html)

## Troubleshooting

- [Kafka SerializationException: Schema Registry unreachable](https://monedula.dev/kafka/troubleshooting/schema-registry-unavailable/)
- [Schema not found (40403) in Kafka: causes and fixes](https://monedula.dev/kafka/troubleshooting/schema-not-found/)
