Blog
Production error deep-dives — root cause, reproduction, and the fix that holds.
How to Use EnumMap and EnumSet in Java 21 (Rota Example)
Build an on-call rota in Java 21 with EnumSet for roles and gaps and EnumMap for schedules and counts, then trigger ten traps that bite in real code.
Kafka CorruptRecordException: Record Is Corrupt — Fix It
Kafka CorruptRecordException: Record is corrupt (stored crc != computed crc). Why the CRC check fails, how to recover the partition, and how to stop it recurring.
Kafka's UNKNOWN_PRODUCER_ID and OutOfOrderSequenceException: Why Your Idempotent Producer Fails After a Restart
A deep dive into why idempotent Kafka producers throw UNKNOWN_PRODUCER_ID and OutOfOrderSequenceException in production, how broker-side producer state expiry causes it, and how to fix it with KIP-360 semantics and proper client configuration.
HikariPool-1 - Connection is not available, request timed out after 30000ms: Diagnosing and Fixing Connection Pool Exhaustion in Spring Boot
A production-grade breakdown of the HikariCP Connection is not available timeout in Spring Boot — why it happens under load, how to reproduce it locally, and how to fix and prevent pool exhaustion for good.
Kafka Failed to Acquire Lock on File .lock: How to Fix It
Kafka broker won't start: 'Failed to acquire lock on file .lock ... A Kafka instance in another process is using this directory.' Why it happens and how to fix it.
How to Use CountDownLatch, CyclicBarrier and Semaphore
Build a stock-sync job in plain Java 21 and use CountDownLatch, CyclicBarrier and Semaphore each where it fits, with runnable checks and the traps I forced.
Consumer Rebalance Storms: Why Your Kafka Consumer Group Never Stabilizes
A deep dive into Kafka consumer rebalance storms — the exact CommitFailedException and JoinGroup log spam that signals it, why max.poll.interval.ms and eager rebalancing are usually to blame, and how to fix it with cooperative sticky assignment and static membership.
LazyInitializationException: could not initialize proxy — no Session — Root Cause and Fix
A deep dive into Spring Boot's LazyInitializationException, why it slips past code review and blows up in production, and how to fix it properly instead of slapping @Transactional on everything.