How one quadratic webhook handler pinned our autoscaler at its ceiling
Sentry's Control RPC deployment sat pinned at its 256-pod autoscaler ceiling (normally ~32) because three GitLab integration bugs combined.
Topics Engineering practices
Tracking down bugs, debugging techniques and war stories.
Sentry's Control RPC deployment sat pinned at its 256-pod autoscaler ceiling (normally ~32) because three GitLab integration bugs combined.
Sentry's React Native SDK now ships a first-class, auto-registering Expo Router integration that traces screen focus and imperative router calls (via wrapExpoRouter), correlates deep links with the navigation they trigger, and captures errors from per-route ErrorBoundaries, which a Babel plugin can wrap automatically at build time.
Nextdoor extended its versioned Valkey ORM cache so every conditional write also atomically stores a short-lived verification key (receipt) recording the operation (fill_on_write or fill_on_miss), writer service, trace ID and replaced version, colocated via a hash tag in the same cluster slot.
HikariCP's default settings can leave Spring Boot apps on OpenShift 4 with exhausted or hung database connections.
A structured standard operating procedure for triaging critical production incidents on RHEL 8 and 9, starting from a severity matrix tied to Red Hat Support SLAs and moving subsystem by subsystem through system identity, CPU, memory/OOM, storage, disk I/O, systemd, networking/DNS, logs, SELinux, time sync, cron and resource limits.
LLDB gains a vendor-neutral accelerator plugin architecture in lldb-server that represents the CPU and GPU as separate debugger targets, each with its own architecture, threads, registers and address space, while presenting them in one debugging session.
A handful of customer releases with unexpanded names like `VERCEL_GIT_COMMIT_SHA` accumulated tens of millions of URL index rows in Sentry's Postgres 14 files database, and an unbounded source-map URL lookup kept scanning them, timing out and being retried.
Netflix augmented Pensive, its rule-based failure diagnosis system for data and ML workloads, with LLM-based error extraction and on-demand debugging after roughly half of seven million failure classifications landed in an "unknown" bucket.
Stripe Data Pipeline's real-time sync streams Stripe objects into Postgres tables within seconds, which lets apps drop webhooks entirely: they write to Stripe's API and read charges, prices and promotion codes from synced stripe.* tables.
A pending Job in a Kueue-managed cluster is often waiting on Kueue admission, not kube-scheduler, so troubleshooting should start with the Workload's QuotaReserved and Admitted conditions before looking at Pods.
An extra full round trip (~32 ms) on simple SELECTs over ClickHouse's Native protocol came from TCP_NODELAY turning each end-of-query metadata packet (Logs, Progress, ProfileEvents) into its own TCP segment.
Data pipelines should be treated like any other production service: defined as code in the producing team's repo, with portable SQL logic tested in CI, and run 24x7 against SLOs for lag, freshness and completeness.
Recurring weekend network partitions caused Jane Street's Kafka relays and consumer-group monitors to segfault, leak hundreds of thousands of sockets, and crash under recovery-time TCP connection surges, and tracing them uncovered six layered bugs.
Jane Street's puzzle chip, shipped as a bare GDS layout, turns out to be a hardware checker for an 11x11 Star Battle ("Two Not Touch") puzzle.
Jane Street built a kernel log shipper that keeps working when disk or network fail, so logs from the most interesting crashes still reach central storage.
Swift 6.3 and 6.4 change how explicitly-built Swift modules are referenced in debug info so LLDB's expression evaluator can import the exact module for the code at a breakpoint instead of looking it up by base name.
Sentry's Search Query Assistant converts natural-language prompts into Sentry Search Syntax, and its team relies on evals plus agent tracing to debug wrong outputs.
MAccConc is a set of tools for exploring thread interleavings of multi-threaded Linux kernel test cases to confirm, regression-test and eventually fuzz race condition bugs.
Bun v1.4.2 is a patch release fixing two v1.4.1 regressions: a `bun build` renaming bug that made nested `var` collide with a `let` (breaking Elysia builds or silently miscomputing), and an `AsyncLocalStorage` leak where timers or promises created in `store.exit()` or nested `run()` kept outer store values alive.
Go 1.27 adds a goroutineleak profile that finds goroutines permanently blocked on channels or sync primitives (Mutex, RWMutex, WaitGroup, Cond) in running programs, including production, with few or no false positives.
Wix Orchestrator turns user support tickets into reviewed pull requests in hours instead of weeks.
Safari 27 and Safari Technology Preview 247 ship a Model Context Protocol server, exposed via safaridriver --mcp, that lets any MCP-compatible coding agent drive a local Safari window.
Mysterious return-to-bogus-address crashes in Rockset's C++ execution layer turned out to be two unrelated bugs: silent register corruption on a single bad Azure host, and an 18-year-old race in GNU libunwind's _Ux86_64_setcontext, which read the synthesized ucontext_t after moving %rsp past it, letting a frequent SIGUSR2 CPU-time signal clobber it during exception unwinding.
A regression in hyperscript 0.9.91 caused `fetch <url> as JSON` to bind `as` as a conversion expression on the URL.
The `heroku connect:diagnose` command in the Heroku Connect CLI plugin audits a Salesforce-to-Heroku Postgres sync and reports GREEN/YELLOW/RED status for connection-level checks (API version, permissions, database plan) and mapping/field checks (unique identifiers, binary and calculated fields, schema drift).
A slow Sidekiq background job at Doximity was traced with the Vernier sampling profiler to a Redis fetch memoized on a per-record builder instance.
Box2D's new Replay system records a full binary snapshot of world state followed by opcodes and arguments for every API call, including steps, forces, impulses, body creation and queries with their callback results.
torch.profiler produces two artifacts: a statistical table showing where time goes and a Chrome/Perfetto trace showing when CPU and GPU events happen.
Jane Street's strace-ui turns strace into an interactive terminal UI with on-the-fly syscall hiding, per-file-descriptor navigation and filtering, short PID labels, hexdumped buffers, man-page lookup and hostname resolution for sockets.
Terraform's aws_organizations_organization data source silently calls DescribeOrganization plus the paginated ListAccounts and ListRoots APIs, and all of them share organization-wide rate limits of about 1 request per second with a burst of 2.
Migrating PipelineRL's rollout generation from vLLM V0 (0.8.5) to V1 (0.18.1) caused training metrics (clip rate, KL, entropy, reward) to diverge.
incident.io's on-call schedule renderer, which computes future shifts on the fly from rotation config, working hours and fair-scheduling rules, became dramatically faster through a series of fixes culminating in a ~2,500x speedup.
A Postgres `INSERT ... ON CONFLICT DO UPDATE ... WHERE` upsert still locks the conflicting row even when the WHERE clause blocks the update.
A RocksDB unit test that generated thousands of SST file unique IDs across many threads exposed a hardware bug: the RDSEED instruction on a newer AMD CPU sometimes returned 0 while reporting success, but only on some cores and only under memory load.
TigerBeetle uses a strict naming convention to catch off-by-one and index-space bugs that types don't easily prevent: `count` is a number of items, `index` points at an item (invariant `index < count`), `size` is a byte count (`size = @sizeOf(T) * count`), and `offset` is the bytewise counterpart of index. `length` is banned because it is ambiguous, for example Rust's byte-size `str::len` versus Python's code-point `len`.
Observability platforms like Splunk, Honeycomb and Sentry can be exposed to AI coding assistants as MCP tools, so engineers query production telemetry in natural language from Cursor or Claude instead of switching to dashboards and writing SPL.
LY Corporation (LINE + Yahoo! Japan) runs a Kafka platform of 200+ brokers serving 25,000+ clients and handling 31M messages/sec at peak, over 1 trillion messages and 2.6 PB of I/O per day.
Agentic RL training of GPT-OSS-20B in verl initially failed with exploding gradient norms, KL and entropy, and flat rewards.
Asahi Linux continues upstreaming Apple Silicon support: SMC hwmon and RTC subdevice drivers land in Linux 6.19, and USB3-over-Type-C changes to the Synopsys and TI USB-PD drivers are merged, with only the Apple Type-C PHY driver still awaiting review.
Oxide's Cosmo sled Service Processor (an STM32H7 Cortex-M7 running Hubris) intermittently dropped off the network and hung so hard a debug probe couldn't halt it.
Jane Street's Aria, a low-latency message bus with strong ordering guarantees, already had unit, simulated-network, quickcheck, AFL fuzz, version-skew, lab and chaos tests, yet adding Antithesis's deterministic-hypervisor testing surfaced two unknown bugs on the first run.
ClickStack's Event Deltas compare a user-selected region of slow spans on a duration-over-time heatmap against the remaining inlier spans, issuing two queries and sampling both sets to surface attribute values disproportionately present in the outliers.
OpenAI's Apps SDK extends the Model Context Protocol with a widget layer: tools that return structuredContent with `_meta.openai/outputTemplate` metadata get rendered as inline React components in ChatGPT.
Docker Buildx 0.29+ adds a Dockerfile build debugger. It is integrated into VS Code through the Docker DX extension and configured with a launch.json entry of type "dockerfile".
ClickHouse built a crash-deduplication pipeline for its CI that groups similar stack traces from fuzzing, stress and functional tests using the TraceSim similarity method, implemented almost entirely in ClickHouse SQL.
Bun v1.2.22 adds async stack traces that include awaited caller frames, a fast path making postMessage and structuredClone up to ~240x faster for plain objects of primitives, and Bun.YAML.stringify.
Turso, a Rust rewrite of SQLite, hit a bug where every write after the database crossed 1GB made SQLite's integrity checks fail, even though Turso's own checks found the file intact.
Porting the Zed editor to Windows required a new DirectX 11 rendering backend with HLSL shaders, replacing Vulkan so it runs on nearly all Windows machines including VMs and uses less memory.