UpFuzz: Detecting Data Format Incompatibility Bugs during Distributed Storage System Upgrade

Ke Han (Purdue University), Sruthi P C (Purdue University), Yayu Wang (The University of British Columbia), Yaoxu Song (Purdue University), Bishal Basak Papan (Purdue University), Junwen Yang (Meta), Pedro Fonseca (Purdue University), Yongle Zhang (Purdue University)

23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 2 · Scalable Storage Systems

Overview

Distributed storage systems are engineered to retain critical enterprise data over extended lifecycles, yet the software codebases governing these systems evolve continuously. When operators execute a rolling upgrade or version transition, the new software version must correctly read, interpret, and migrate historical data persisted on disk by older versions. However, because data formats frequently change across software releases, upgrades function essentially as complex cross-version data migration operations. When this migration logic contains flaws, the consequences are catastrophic, resulting in unrecoverable data loss, persistent crash loops, and silent data corruption. This talk presents UpFuzz, an automated testing framework designed to detect data format incompatibility bugs during distributed storage system upgrades.

Watch on YouTube · Slides

Visual summary for UpFuzz: Detecting Data Format Incompatibility Bugs during Distributed Storage System Upgrade by Ke Han, Sruthi P C, Yayu Wang, Yaoxu Song, Bishal Basak Papan, Junwen Yang, Pedro Fonseca, Yongle Zhang
Visual summary for UpFuzz: Detecting Data Format Incompatibility Bugs during Distributed Storage System Upgrade by Ke Han, Sruthi P C, Yayu Wang, Yaoxu Song, Bishal Basak Papan, Junwen Yang, Pedro Fonseca, Yongle Zhang

Key moments

  1. 0:00 Introduction and upgrade bug background
  2. 2:00 Automated testing and the upgrade bottleneck
  3. 4:00 Specialized feedback for upgrade testing
  4. 6:00 Transitively persistent state abstraction
  5. 8:00 State collection and property inference
  6. 10:00 Temporal and spatial localities
  7. 10:38 Evaluation results and bug discoveries

UpFuzz: Detecting Data Format Incompatibility Bugs during Distributed Storage System Upgrade

Speakers: Ke Han (Purdue University); Sruthi P C (Purdue University); Yayu Wang (The University of British Columbia); Yaoxu Song (Purdue University); Bishal Basak Papan (Purdue University); Junwen Yang (Meta); Pedro Fonseca (Purdue University); Yongle Zhang (Purdue University)

Conference: USENIX NSDI

YouTube: https://www.youtube.com/watch?v=BabHare2Fow

Overview

Distributed storage systems are engineered to retain critical enterprise data over extended lifecycles, yet the software codebases governing these systems evolve continuously. When operators execute a rolling upgrade or version transition, the new software version must correctly read, interpret, and migrate historical data persisted on disk by older versions. However, because data formats frequently change across software releases, upgrades function essentially as complex cross-version data migration operations. When this migration logic contains flaws, the consequences are catastrophic, resulting in unrecoverable data loss, persistent crash loops, and silent data corruption. This talk presents UpFuzz, an automated testing framework designed to detect data format incompatibility bugs during distributed storage system upgrades.

The core challenge in upgrade testing is that while executing user commands (such as table creations or data insertions) and checking for failures are computationally cheap, executing the actual system upgrade is exceptionally expensive, often taking tens of seconds per iteration. Traditional feedback-driven fuzzing loops rely primarily on code coverage to determine whether a test case is worth mutating and retaining. In the context of system upgrades, code coverage fails because syntactically diverse tests frequently trigger the exact same upgrade code paths without exposing new persistent data boundary conditions. Consequently, a fuzzer guided only by code coverage wastes its testing budget on redundant upgrades.

UpFuzz solves this bottleneck by shifting the feedback mechanism from code execution paths to data semantics. Instead of asking whether a test covers new code, UpFuzz evaluates whether a test generates novel data structures that the upgraded system might interpret incorrectly. By intercepting in-memory states before they are serialized and tracking fine-grained data properties—such as unary field types, binary relationships, and localized conjunctions—UpFuzz identifies interesting upgrade-relevant test cases prior to executing the expensive upgrade procedure. Evaluated on mature, production-grade distributed storage systems including Apache Cassandra, HBase, HDFS, and Apache Ozone, UpFuzz successfully discovered 15 new, previously unknown cross-version data migration bugs, alongside 23 additional non-migration bugs.

Background

▶ Watch: Introduction and upgrade bug background (0:00)

In the systems and database engineering space, validating the reliability of version upgrades has traditionally relied on manual test suites, regression scripts, or primitive black-box fuzzing. Systems like Apache Cassandra, HBase, HDFS, and Apache Ozone accumulate vast amounts of historical state in production. When an operator updates the binaries, the new software must unpack, deserialize, and migrate legacy storage formats into the new internal representations.

The engineering difficulty stems from a fundamental decoupling: the old version of the software operates correctly on legacy data, and the new version operates correctly on fresh data generated natively under its own schema. Failures exclusively manifest in the cross-version interaction—specifically, when legacy data persisted under an old format is parsed by the upgraded codebase. Because production environments contain diverse, accumulated states spanning years of schema evolutions, developers cannot anticipate every edge case in migration logic.

Automating this discovery process via traditional feedback-driven fuzzing encounters a severe systems bottleneck. A standard fuzzing loop generates a sequence of user commands, runs them on the old version, executes an upgrade, and checks for failures on the new version. However, the upgrade phase is a massive performance drag. Many test cases are syntactically distinct yet yield identical underlying data states, meaning they force redundant, expensive system upgrades without exploring new upgrade-relevant behaviors. Furthermore, traditional code coverage feedback is blind to data values; two test cases can execute the exact same serialization code path while one embeds a rare corner-case field relationship that triggers a deserialization crash in the upgraded binary. UpFuzz was developed to bridge this gap by introducing semantic data feedback tailored specifically to distributed storage upgrades.

Key Findings

▶ Watch: Specialized feedback for upgrade testing (4:00)

The primary discovery presented in the research is that cross-version data format incompatibilities are prevalent even in mature, heavily tested distributed storage systems running their latest stable versions. UpFuzz uncovered 38 total bugs across target systems like Cassandra, HBase, HDFS, and Ozone, of which 15 are severe cross-version data migration bugs.

The key findings and results from the evaluation include:

  • Severity of Bugs: The 15 data migration bugs discovered by UpFuzz have severe production consequences, leading directly to daemon crashes, silent data corruption, and permanent data loss. Three of these bugs have already been officially confirmed and fixed by mainstream maintainers.
  • Superiority of Data-Centric Feedback: An ablation study comparing UpFuzz with traditional code-coverage-based fuzzing revealed that 47% of the critical data migration bugs can only be detected using UpFuzz's transitive persistent state feedback within a 24-hour testing budget. Traditional coverage-guided fuzzers missed nearly half of these bugs because code coverage failed to signal that a test was producing novel data structures.
  • Efficiency Gains: By filtering out uninformative test cases before triggering the expensive upgrade phase, UpFuzz drastically accelerates the discovery of non-trivial bugs, maximizing the productivity of the testing cycle.
  • Collateral Bug Discovery: In addition to the 15 data migration bugs, the fuzzer exposed 23 other software defects, including upgrade-process faults unrelated to data migration and single-version execution bugs.

Technical Deep Dive

▶ Watch: Transitively persistent state abstraction (6:00)

The architectural innovation of UpFuzz lies in its definition of Transitive Persistent State (TP State) and its efficient property-inference engine.

Transitive Persistent State (TP State)

Analyzing raw disk bytes directly is infeasible because serialized disk blocks lack high-level semantic structure; a byte sequence could represent table metadata, a column family, or an index block, making it impossible to map back to modified data formats. Conversely, analyzing general in-memory objects introduces too much noise, as most memory structures are ephemeral and never written to persistent storage. UpFuzz bridges this by targeting TP States—memory states that eventually flow to disk, either directly or through intermediate memory copies, buffers, and serialization layers.

To collect TP States with minimal overhead, UpFuzz hooks into the system's synchronous I/O operations and performs a backward program analysis. This analysis identifies the optimal monitoring point: precisely after all in-memory updates are complete, but immediately before the object serialization pipeline begins. This guarantees that every serialized object is monitored exactly once, that the captured state is fully representative of disk data, and that the instrumentation is automatically generated via program analysis.

Property Inference and Locality Heuristics

Once TP States are captured, UpFuzz infers three classes of data properties to determine if a test case is interesting:

  1. Unary Properties: Describe a single state attribute (e.g., checking whether a column type has transitioned away from an integer).
  2. Binary Properties: Relate two distinct states (e.g., asserting whether Field A equals Field B).
  3. Conjunction Properties: Capture complex interactions where multiple independent properties occur simultaneously. Many real-world migration bugs only manifest when multiple conditions align (e.g., a specific column is dropped and a row ends precisely at an index block boundary).

To prevent combinatorial explosion during conjunction inference, UpFuzz leverages two forms of locality:

  • Temporal Locality: States that are serialized close to one another in time are significantly more likely to interact during an upgrade. For example, in Apache Cassandra, table metadata and its corresponding index block are serialized adjacently; combining properties from these two streams is meaningful, whereas combining metadata from Table 1 with an index block from Table 2 is discarded as irrelevant.
  • Spatial Locality: States that share direct in-memory reference relationships (object graph proximity) are grouped together to capture complex structural dependencies without inflating the state space.

Experimental Setup & Results

▶ Watch: Temporal and spatial localities (10:00)

The evaluation of UpFuzz focused on mature, heavily audited distributed storage systems operating on their latest stable releases.

  • Target Systems: The evaluation targeted prominent open-source distributed storage engines, including Apache Cassandra, Apache HBase, HDFS (Hadoop Distributed File System), and Apache Ozone.
  • Hardware/Software Environment: The experiments executed the target storage engines within standard instrumented virtualized environments running automated test harnesses compiled with custom program analysis instrumentation.
  • Metrics: Primary metrics included the number of unique cross-version data migration bugs discovered, bug severity (measured by crash frequency, data corruption, and data loss), time-to-detection (TTP), and comparative analysis against baseline coverage-guided fuzzers over a standardized 24-hour evaluation budget.
  • Headline Numbers: UpFuzz identified 38 new bugs in total across the tested systems, comprising 15 novel cross-version data migration bugs and 23 general system/upgrade bugs. Furthermore, the evaluation established that 47% of these data migration bugs were exclusively discoverable using UpFuzz's data-property feedback loop, proving that traditional code coverage alone is fundamentally insufficient for upgrade-validation workloads.

Practical Implications

▶ Watch: Evaluation results and bug discoveries (10:38)

For infrastructure teams, database architects, and platform reliability engineers, the findings of this research highlight a dangerous blind spot in standard CI/CD pipelines: testing software versions in isolation or with fresh data is insufficient to guarantee upgrade safety. Distributed storage systems carry legacy baggage, and migration logic represents an acute, high-impact attack surface for operational failures.

  • For Model Builders and Storage Engineers: Upgrades must be treated as cross-version data migration problems. Developers introducing schema changes or modifying serialization layers should implement targeted assertions tracking TP States and object graph relationships.
  • For Infra and SRE Teams: Relying solely on rolling upgrades with standard integration test suites leaves production clusters vulnerable to silent data corruption and unrecoverable data loss. Incorporating semantic-aware fuzzing tools into staging environments before pushing major version bumps can preempt catastrophic failures.
  • Tradeoffs and Limitations: While UpFuzz successfully avoids state space explosion via temporal and spatial locality heuristics, configuring program analysis hooks requires careful profiling of synchronous I/O boundaries. Additionally, tracking TP states introduces a monitoring overhead that must be balanced against test throughput during continuous integration runs.

Key Takeaways

  • Upgrading distributed storage systems is fundamentally a cross-version data migration problem where legacy persistent formats interact with new software codebases.
  • Traditional code-coverage-guided fuzzers fail in upgrade testing because they cannot distinguish between syntactically diverse tests that produce identical underlying data states.
  • UpFuzz introduces Transitive Persistent State (TP State) analysis to capture structured memory states right before serialization, bypassing the opacity of raw disk bytes.
  • By tracking unary, binary, and localized conjunction properties constrained by temporal and spatial locality, UpFuzz identifies interesting upgrade-relevant tests without state space explosion.
  • UpFuzz discovered 15 severe cross-version data migration bugs across mature systems like Cassandra, HBase, HDFS, and Ozone, 47% of which were completely undetectable using traditional coverage feedback within a 24-hour window.

About the Speaker(s)

The research was presented by Ke Han, a researcher representing Fudan University and Purdue University, as part of a collaborative academic and industry effort involving authors from Purdue University, The University of British Columbia, and Meta. The team specializes in distributed systems reliability, automated testing, and software verification.

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)