Post

How Google Traced GKE API Timeouts to a Linux Kernel TCP Bug

An investigation of intermittent Kubernetes API timeouts uncovered three interacting problems: packet reordering in Private Service Connect, Envoy half-close behavior, and a Linux TCP bug discarding certain reordered FIN packets. The combination could leave sockets stuck in FINWAIT2 and cause stale ACKs on subsequent connections.

The investigation ultimately led to a Linux kernel fix, rather than just a configuration change.