---
title: "Fuzzer Blind Spots (Meet Jepsen!)"
description: "Jepsen found a missing-results bug in TigerBeetle's query engine despite four fuzzers covering it, because the VOPR and LSM query fuzzer pre-registered disjoint queries whose matching objects were always consecutive in every secondary index, so zig-zag merge join probing was never exercised."
url: "https://swe.quest/articles/fuzzer-blind-spots-meet-jepsen-95901ab1fc56e123"
canonical: "https://tigerbeetle.com/blog/2025-06-06-fuzzer-blind-spots-meet-jepsen"
source: "TigerBeetle"
published: "2025-06-06"
difficulty: "hard"
kind: "Case study"
reading_minutes: 7
tags: ["testing","formal-methods","storage-engines","query-engines","debugging"]
---

# Fuzzer Blind Spots (Meet Jepsen!)

A post on [TigerBeetle](https://swe.quest/sources/tigerbeetle.md), published 2025-06-06, 7 min read, Case study. Original: [https://tigerbeetle.com/blog/2025-06-06-fuzzer-blind-spots-meet-jepsen](https://tigerbeetle.com/blog/2025-06-06-fuzzer-blind-spots-meet-jepsen)

## Summary

Jepsen found a missing-results bug in TigerBeetle's query engine despite four fuzzers covering it, because the VOPR and LSM query fuzzer pre-registered disjoint queries whose matching objects were always consecutive in every secondary index, so zig-zag merge join probing was never exercised. The bug was in ScanTreeLevel: after a probe shrank the scan's key range, the key\_exclusive\_next check could misfire from the wrong end and mark the level finished, returning truncated results. Rewriting the fuzzer to generate random objects and random queries against a full model reproduced the bug trivially, and the fix splits the termination condition. The broader lesson is that biased fuzzer workloads can silently project away reachable states, so targeted fuzzers should be complemented with broader, less-structured sampling and precise output checking.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [Formal methods](https://swe.quest/tags/formal-methods.md) (Architecture & design)
- [Storage engines](https://swe.quest/tags/storage-engines.md) (Data & databases)
- [Query engines](https://swe.quest/tags/query-engines.md) (Data & databases)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)

## Prerequisites

- fuzz testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- LSM trees ([easy posts on Storage engines](https://swe.quest/tags/storage-engines.md?difficulty=easy))
- secondary indexes
- merge join

## Keywords

TigerBeetle, Jepsen, VOPR, Zig-Zag Merge Join, LSM tree, Zig

## Related posts

- [Fuzzing collaboration with WINGFUZZ - Part 1](https://swe.quest/articles/fuzzing-collaboration-with-wingfuzz-part-1-659c66e435090a2d.md): ClickHouse · 2023-08-08 · Easy · 4 min read · Testing, Vulnerability research, Databases, Analytics & OLAP
  WINGFUZZ, a DBMS fuzzing engine, found eight new bugs in ClickHouse, some introduced only four months earlier, using two techniques.
- [BuzzHouse: Bridging the database fuzzing gap for testing ClickHouse](https://swe.quest/articles/buzzhouse-bridging-the-database-fuzzing-gap-for-testing-clickhouse-7d42aa00b0761971.md): ClickHouse · 2025-01-21 · Medium · 8 min read · Testing, Databases, Analytics & OLAP, SQL
  BuzzHouse is a new ClickHouse fuzzer that generates complex but mostly semantically valid SQL backed by a tracked catalog of tables, filling a gap left by SQLsmith, SQLancer, the AST fuzzer and WINGFUZZ.
- [Fuzzing ClickHouse](https://swe.quest/articles/fuzzing-clickhouse-2e19ad8301dd21c4.md): ClickHouse · 2021-03-11 · Medium · 8 min read · Testing, Databases, Vulnerability research, CI/CD
  ClickHouse's AST-based query fuzzer takes SQL queries from the regression test suite, parses them, and randomly mutates the AST.
- [Random Fuzzy Thoughts](https://swe.quest/articles/random-fuzzy-thoughts-74b3f2f1b21a2499.md): TigerBeetle · 2023-03-28 · Medium · 9 min read · Testing, Formal methods, Distributed systems, Zig
  Treating a fuzzer's byte slice as a finite PRNG unifies coverage-guided fuzzing with structured property-based testing: the entropy length measures input complexity, gives test-case minimization almost for free, and tells interactive simulations when to stop injecting faults.
- [On the Effectiveness of Mutational Grammar Fuzzing](https://swe.quest/articles/on-the-effectiveness-of-mutational-grammar-fuzzing-edf57a83d5fa06c9.md): Google Project Zero · 2026-03-05 · Hard · 9 min read · Vulnerability research, Testing
  Coverage-guided mutational grammar fuzzing has two weaknesses.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
