Programming Languages
Bug Report
Our request counter undercounted by 7% under load: a Go data race found with -race
Billing usage counts from a Go service were consistently lower than the load balancer's numbers. The cause was an unsynchronised counter incremented from many goroutines. How the race detector found it, and when to use atomic versus a mutex.