Jane Street·
How recurring network maintenance exposed 6 bugs
TL;DR
Routine network maintenance caused Jane Street’s Kafka services to crash, leak sockets, and overwhelm hosts with reconnect attempts instead of recovering cleanly. Tracing crashes and reproducing failures under resource pressure uncovered six interacting bugs across DNS resolution, networking libraries, retry logic, and process limits, with each fix exposing another hidden problem. The investigation produced an upstream glibc fix and revealed that the same resolver bug had been crashing unrelated applications for years.
Relevant links
- Adam Yiblog.janestreet.com
- Async started putting all glibc DNS lookups behind a throttle capped at half the poolgithub.com
- the kernel’s default settingdocs.kernel.org
- glibc bug 23005sourceware.org
- fixsourceware.org
- 2015 glibc commitsourceware.org
- filed the bugsourceware.org
- fix is now committed upstream in glibcsourceware.org
- shipped in 2.44inbox.sourceware.org
- thundering herden.wikipedia.org
- purgatorywww.confluent.io
- secondsourceware.org