Blog
Production error deep-dives — root cause, reproduction, and the fix that holds.
Kafka LEADER_NOT_AVAILABLE: Why It Happens and How to Fix It
Kafka LEADER_NOT_AVAILABLE floods your producer logs the moment you write to a fresh topic. Here's the exact cause, the reproduction, and the real fix.
Kafka UnknownMemberIdException: Why It Happens and How to Fix It
Kafka UnknownMemberIdException — 'The coordinator is not aware of this member' (code 25). Learn the three triggers, the memberId lifecycle, and the exact fix.
How to Use Atomic Classes in Java: AtomicLong, LongAdder
Build a parcel-scan counter on JDK 21 with AtomicLong, LongAdder, AtomicReference and AtomicBoolean, then fix a dock gate that lets three trucks into two bays.
Kafka Streams: A Serializer Is Not Compatible to the Actual Type
Kafka Streams throws 'A serializer is not compatible to the actual key or value type' or 'ClassCastException invoking Processor'. Here's the SerDe fix.
How to Use BlockingQueue for Producer-Consumer in Java
Build a currency-rate pipeline with a bounded BlockingQueue: back-pressure, poison pills, clean shutdown and 15 plain-Java checks on JDK 21. Full code.
How to Write a Generic Class and Method in Java (Java 21)
Write a generic class, generic methods, bounded types and wildcards in Java 21 by building a parcel shelf, with 21 passing checks and the compiler errors.
Kafka Streams TaskCorruptedException: Fix and Prevent It
Kafka Streams TaskCorruptedException wipes local state and re-restores from the changelog. Here's why it fires under EOS, how to fix it, and how to stop it.
Kafka OffsetOutOfRangeException: auto.offset.reset Explained
Fix OffsetOutOfRangeException and NoOffsetForPartitionException in Kafka: why committed offsets vanish, what auto.offset.reset really does, and safe resets.
Kafka TopicExistsException: Why It Happens and How to Fix It
Kafka TopicExistsException: Topic 'X' already exists. Why AdminClient, Spring KafkaAdmin, and kafka-topics.sh throw it, and how to handle it idempotently.
Kafka Streams RocksDBException: Too Many Open Files Fix
Kafka Streams dying with ProcessorStateException and RocksDBException 'Too many open files'? Here's the file-descriptor math and the config setter that fixes it.