Pilot Execution: Simulating Failure Recovery In Situ for Production Distributed Systems
Zhenyu Li (University of Virginia), Angting Cai (University of California San Diego), Chang Lou (University of Virginia)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 1 · The Care and Feeding of Networked Systems
Overview
In modern cloud systems, failures are inevitable. When infrastructure components drop offline, automated recovery mechanisms—such as failovers, checkpoint restorations, and manual administrative tooling—are designed to restore service availability. However, these recovery paths frequently trigger secondary incidents worse than the original faults. Known as recovery failures, these events occur when flawed recovery logic encounters the same corrupted state, transient timeouts, or misconfigured health probes that caused the initial failure, driving entire clusters into cascading outages.

Key moments
- 0:00 Introduction and motivation on recovery failures
- 1:21 Real-world HBase incident and study findings
- 4:07 Introducing parallel execution and phantom threads
- 6:03 In situ simulation design and code isolation
- 8:38 Metadata propagation across threads and processes
- 11:32 Pilot system implementation and offline instrumentation
- 12:50 Evaluation results and comparison with baselines
- 14:15 Conclusion and closing remarks
Pilot Execution: Simulating Failure Recovery In Situ for Production Distributed Systems
Speakers: Zhenyu Li (University of Virginia); Angting Cai (University of California San Diego); Chang Lou (University of Virginia)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=25J-kFNUp5E
Overview
In modern cloud systems, failures are inevitable. When infrastructure components drop offline, automated recovery mechanisms—such as failovers, checkpoint restorations, and manual administrative tooling—are designed to restore service availability. However, these recovery paths frequently trigger secondary incidents worse than the original faults. Known as recovery failures, these events occur when flawed recovery logic encounters the same corrupted state, transient timeouts, or misconfigured health probes that caused the initial failure, driving entire clusters into cascading outages.
This talk, presented at USENIX NSDI by researchers from the University of Virginia and the University of California San Diego, introduces Pilot, a novel execution model and system framework designed to simulate failure recovery actions in situ within production distributed systems before committing them. By running speculative recovery paths inside isolated, transient execution contexts, Pilot allows infrastructure operators and systems to validate the safety of a recovery action without risking cluster-wide disruption.
The research matters because traditional mitigation strategies—such as offline model checking, staging environments, and partial A/B testing—fundamentally fail to capture the complex, low-level distributed interactions that cause 92% of production recovery failures. By implementing parallel execution primitives, shadow-copying production state, and leveraging result caching, Pilot successfully detects complex recovery bugs across popular distributed storage and coordination platforms while introducing minimal latency overhead.
Background
▶ Watch: Introduction and motivation on recovery failures (0:00)
The reliability of large-scale distributed systems relies heavily on automated recovery routines. When a node crashes or a disk fails, distributed coordinators step in to re-replicate logs, migrate virtual machines, or spin up backup instances. Unfortunately, these routines often harbor latent bugs. For instance, in a well-documented incident involving Apache HBase, a region server crashed while replicating a write-ahead log stored on the Hadoop Distributed File System (HDFS). The coordinator initiated a failover to a second region server, but because the corrupted log file remained untouched on the shared storage layer, the second server immediately crashed upon attempting the same replication step. The cluster fell into an endless recovery loop that ultimately dragged down the entire service.
To understand the scope of this problem, the authors conducted an empirical study examining 75 recovery failure cases across eight popular distributed systems by searching issue trackers for terms like "recovery" and "failover." Their analysis yielded two crucial insights:
- Mature production systems frequently encounter recovery failures that cause severe service unavailability.
- The root causes are deeply diverse (spanning state management anomalies and deficient error handling), and more than 92% of these failures manifest across distributed boundaries—crossing threads, processes, and distinct networked services.
Preventing these bugs presents a severe systems engineering challenge. Offline testing and formal verification models routinely miss low-level implementation bugs and fail to replicate the exact dynamic conditions of a live cluster. Conversely, online mitigation strategies like A/B testing or canary deployments carry high risk: testing a buggy recovery script on a subset of live machines can inadvertently trigger cascading failures across production. While some applications offer dry-run features, they lack a general, low-overhead mechanism to safely simulate state-mutating recovery operations in a live distributed environment.
Key Findings
▶ Watch: Introducing parallel execution and phantom threads (4:07)
To tackle the limitations of existing validation approaches, the authors developed Pilot, a system that introduces parallel execution—a dry-run paradigm dedicated specifically to checking query and recovery safety rather than accelerating performance.
Evaluating Pilot against 20 reproduced real-world recovery failures across five popular distributed systems (including HDFS and Apache Solr), the researchers established several headline findings:
- High Detection Rate: Pilot successfully detected 17 out of the 20 real-world recovery failures.
- Superiority Over Baselines: When combining four natural alternative baselines—preview modes, production A/B testing, log-based signature detection (such as failure cycle detection), and isolated validation staging environments—all alternatives combined detected only 8 of the 20 failures. A/B testing proved particularly unreliable due to non-deterministic behaviors tied to node selection.
- Low Performance Overhead: When running Pilot on safe (fixed) code paths where recovery succeeds, the caching optimization engine limits total end-to-end time overhead to just 17.63%. When executing buggy recovery paths to expose failures, the performance overhead drops to a negligible 3.99%.
- Zero-Day Bug Discovery: Although not designed primarily as a general bug-finding tool, Pilot successfully exposed a previously unknown bug in the latest version of Apache HBase, where suppressed exceptions prevented error propagation to clients and resulted in perpetually incorrect recovery states. The HBase community confirmed and merged the fix.
Technical Deep Dive
▶ Watch: Metadata propagation across threads and processes (8:38)
Pilot achieves safe, in-situ simulation through three primary systems design pillars: phantom threads, parallel context propagation, and result caching with speculative locking.
In Situ Simulation via Phantom Threads
To prevent production pollution without resorting to heavy transactional rollback or expensive virtualization layers, Pilot introduces phantom threads. When a recovery starting point is triggered (e.g., a ZooKeeper liveness node deletion event in HBase), Pilot inserts API hooks that divert execution into a parallel mode by spawning dedicated, transient phantom threads.
Isolation is enforced via lazy shadow copying:
- The parallel execution engine creates a parallel version state container.
- Original production states are lazily shadow-copied into this container upon access.
- Subsequent read and write accesses within the phantom thread are redirected to these shadow copies recursively, including nested objects, I/O streams, and third-party service calls.
To prevent resource contention from impacting live production traffic, phantom threads use speculative locks, ensuring they immediately yield when competing with original production threads for shared resources. Furthermore, Pilot manages thread lifecycles using a status registry. If a phantom thread exceeds a preconfigured spawn limit, times out, or aborts, cleanup callbacks automatically terminate and reclaim all associated worker threads, preventing resource leaks.
Distributed Propagation via Parallel Contexts
Because over 92% of recovery failures span threads, processes, and network boundaries, Pilot must track metadata across remote procedure calls (RPCs) and inter-process communication (IPC). It accomplishes this using a parallel context, which bundles a globally unique execution identifier alongside span metadata tracking the propagation lineage.
For standard RPC frameworks, Pilot piggybacks directly on existing tracing infrastructure such as OpenTelemetry via lightweight hooks. For trickier synchronization primitives like condition variables, Pilot instruments wrappers that record affected threads offline and spawn corresponding phantom threads at runtime to mirror state transitions accurately. Finally, when evaluating dangerous routines, Pilot replaces fatal crash APIs in the parallel execution path with safe report APIs that emit diagnostic telemetry to operators instead of tearing down the process.
Caching and Execution Optimization
Running a complete recovery simulation prior to executing the actual recovery threatens to double end-to-end latency. Pilot avoids this bottleneck by caching expensive I/O operations and computations performed during the parallel simulation phase (such as downloaded files). During the subsequent committed recovery pass, these cached artifacts are reused after validating their integrity via checksum checks, sharply reducing latency overhead.
Experimental Setup & Results
▶ Watch: Pilot system implementation and offline instrumentation (11:32)
The evaluation of Pilot was structured around reproducing 20 historical, real-world recovery failures spanning five distinct distributed systems, including HDFS and Apache Solr. These failure scenarios covered a wide spectrum of system symptoms, including cascading node crashes, invalid state updates, and infinite retry loops.
Pilot was benchmarked against four alternative validation strategies:
- Preview Modes: Mechanisms that inspect recovery plans statically without executing the operational code path.
- Production A/B Testing: Routing recovery actions to a subset of live machines.
- Log-Based Detection Tools: Pattern-matching tools (such as failure cycle detectors) designed to catch specific recurrence loops.
- Validation Slices: Separate staging environments configured to mimic production clusters.
The evaluation measured two core performance metrics under distinct runtime conditions:
- Buggy Version Overhead: Comparing standard recovery against parallel execution when a bug is present. Pilot introduced an overhead of only 3.99%, confirming that the simulation accurately replicates failure mechanics without bogging down the system.
- Fixed Version Overhead: Measuring latency when the underlying recovery logic is safe and valid. With Pilot's caching and result reuse optimizations enabled, total end-to-end time overhead was bounded at 17.63%, demonstrating that the safety check does not impose prohibitive latency penalties on normal administrative workflows.
Practical Implications
▶ Watch: Conclusion and closing remarks (14:15)
For infrastructure teams, SREs, and distributed systems developers, Pilot offers a compelling shift in how cloud reliability is managed. Rather than relying solely on reactive log monitoring or fragile offline staging environments, teams can integrate runtime validation directly into production systems.
However, practitioners must navigate certain tradeoffs and limitations:
- Language Ecosystem: The current implementation of Pilot targets Java-based distributed systems. While the core algorithms and design principles are language-agnostic, porting the framework to systems written in C++ or Go requires rewriting the bytecode instrumentation and thread management layers.
- Instrumentation Overhead: Developers must carefully identify and instrument the starting points of recovery logic and propagate parallel contexts across custom IPC boundaries.
- Storage and Memory Footprint: Lazy shadow copying and result caching consume additional memory and temporary storage during the simulation phase, requiring careful tuning of resource limits to prevent out-of-memory errors on resource-constrained nodes.
Despite these constraints, Pilot establishes a viable blueprint for validatable cloud management, bridging the gap between theoretical safety models and chaotic production environments.
Key Takeaways
- Production Recovery Hazards: Automated recovery mechanisms (failovers, log replications) frequently trigger secondary cascading failures when encountering corrupted states, accounting for severe cluster outages.
- The Cross-Boundary Challenge: More than 92% of recovery failures span multiple threads, processes, and network nodes, rendering traditional offline testing and static model checking ineffective.
- Phantom Threads & Isolation: Pilot introduces in-situ simulation via transient phantom threads, using lazy shadow copying and speculative locks to isolate production systems from side effects during dry runs.
- Context Propagation: By leveraging tracing frameworks like OpenTelemetry, Pilot propagates parallel execution contexts across RPC and IPC boundaries to simulate distributed interactions accurately.
- Low-Overhead Safety: Through intelligent caching of I/O operations and computation results, Pilot validates recovery safety with only a 17.63% end-to-end latency overhead on safe paths.
- Real-World Efficacy: Across 20 reproduced real-world failures in systems like HDFS and Solr, Pilot detected 17 bugs while uncovering a previously unknown zero-day bug in Apache HBase.
About the Speaker(s)
The talk was presented by Zhenyu Li, a researcher at the University of Virginia, representing a collaborative research effort alongside Angting Cai from the University of California San Diego and Chang Lou from the University of Virginia. Their work focuses on distributed systems reliability, fault tolerance, and runtime verification for cloud-scale infrastructure.
Reviews
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)