Skip to content

storage: wire new wavesdb engine capabilities into waveSpan#2

Merged
yannick merged 1 commit into
mainfrom
feature/wavesdb-engine-integration
Jul 4, 2026
Merged

storage: wire new wavesdb engine capabilities into waveSpan#2
yannick merged 1 commit into
mainfrom
feature/wavesdb-engine-integration

Conversation

@yannick

@yannick yannick commented Jul 4, 2026

Copy link
Copy Markdown
Owner

wavesdb (the embedded LSM engine) gained 9 ondadb-backport features, already merged into wavesdb main which waveSpan builds against via the ../wavesdb replace directive. This wires the genuinely-additive ones into waveSpan's Go layers; the rest (RYOW fix, compaction filters, FIFO, ClearColumnFamily) are skipped because they duplicate or would break waveSpan's own distributed logic (documented inline).

  • Fail-stop poisoning: storage.ErrPoisoned + WavesdbStore.Poisoned(); the health monitor probes it in its poll loop, sheds writes via the existing DiskGate, sets a wavespan_storage_poisoned gauge, and fires OnPoison once -> graceful node exit (restart re-runs recovery). Latches until restart.
  • Single-process data-dir LOCK: map wavesdb.ErrLocked -> storage.ErrLocked with an actionable startup message; node refuses to start when the dir is already held.
  • Per-level compression: EngineOptions.CompressionPerLevel + a new storage.engine.compressionPerLevel CSV tunable; reference.yaml regenerated.
  • Bulk ingestion: SortedIngester capability + an ingestion fast-path in the logical restore write path (reshard / MemStore fall back to Batch).
  • Per-CF engine stats: an EngineStatsCollector exposing five wavespan_engine_* Prometheus series (point reads, SST probes, bloom skips, memtable entries, approx len), registered on the node.

Also fixes a latent bug this surfaced: empty-string tunable defaults rendered as YAML null in the reference generator (reference.go now quotes them).

Tests cover each workstream plus an end-to-end /metrics scrape over the real AdminMux with a store opened under per-level compression. Full suite passes, -race clean on touched packages, go.mod/go.sum unchanged.

wavesdb (the embedded LSM engine) gained 9 ondadb-backport features, already
merged into wavesdb main which waveSpan builds against via the ../wavesdb replace
directive. This wires the genuinely-additive ones into waveSpan's Go layers; the
rest (RYOW fix, compaction filters, FIFO, ClearColumnFamily) are skipped because
they duplicate or would break waveSpan's own distributed logic (documented inline).

- Fail-stop poisoning: storage.ErrPoisoned + WavesdbStore.Poisoned(); the health
  monitor probes it in its poll loop, sheds writes via the existing DiskGate, sets
  a wavespan_storage_poisoned gauge, and fires OnPoison once -> graceful node exit
  (restart re-runs recovery). Latches until restart.
- Single-process data-dir LOCK: map wavesdb.ErrLocked -> storage.ErrLocked with an
  actionable startup message; node refuses to start when the dir is already held.
- Per-level compression: EngineOptions.CompressionPerLevel + a new
  storage.engine.compressionPerLevel CSV tunable; reference.yaml regenerated.
- Bulk ingestion: SortedIngester capability + an ingestion fast-path in the logical
  restore write path (reshard / MemStore fall back to Batch).
- Per-CF engine stats: an EngineStatsCollector exposing five wavespan_engine_*
  Prometheus series (point reads, SST probes, bloom skips, memtable entries,
  approx len), registered on the node.

Also fixes a latent bug this surfaced: empty-string tunable defaults rendered as
YAML null in the reference generator (reference.go now quotes them).

Tests cover each workstream plus an end-to-end /metrics scrape over the real
AdminMux with a store opened under per-level compression. Full suite passes,
-race clean on touched packages, go.mod/go.sum unchanged.
@yannick yannick merged commit a7e335a into main Jul 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant