Consumer stalls on schema mismatch
Your task
A rolling deploy updates both the producer and consumer of a Kafka topic. The new producer adds a required field to the event payload and bumps the schema; the new consumer handles it. Mid-rollout, consumer lag on the topic starts climbing and a subset of partitions stall completely; a dead-letter count rises. Dashboards: producer pods are ~60% new / 40% old; consumer pods are ~50/50; no HTTP errors. The OLD consumers, when they receive a NEW-schema message, throw on the missing-in-their-view changed field and, because the consumer retries the same offset on failure without advancing, get stuck reprocessing the same poison message, blocking the partition (head-of-line). NEW consumers on old messages are fine. How do you triage and mitigate?
It covers
- Message queue
- Consumer producer skew
- Poison message