Skip to content

SEAM 1

Applies to SEAM 1

SEAM 1 is the layout that pre-4 used, adopted unchanged. It is the format every current LUMA build writes. A store becomes a SEAM 1 store at one durable point: the first open by a build of this format rewrites the MANIFEST and stamps it, before any other byte is written. See Rewrite and format stamp.

Structure Written by SEAM 1 Read-only (pre-release layouts)
Footer revision 5, the layout of every file a current writer produces revisions 1, 2, 3, 4
Columnar block revisions 3, 4, 5: a writer emits the lowest revision a block needs, so one file holds a mix revisions 1, 2
Stats frame revision 2 revision 1
Posting block 0xE2 (fallback), 0xE3, 0xE4, 0xE5 unmarked and the early 0x02 marker of 0xE2
MANIFEST header 24-byte header legacy 8-byte header

Every layout in the right-hand column above, so that stores written by pre-release builds can be opened. A SEAM 1 reader never reinterprets an older layout; it keeps a decoder for each. Background migration then rewrites or relabels old files, see Migration.

A SEAM 1 build refuses a store whose stamp is newer than it understands, before it writes anything: Compatibility rules.

The lists below are generated from the same table as the version matrix.

Written by this version (130)

Conventions (5)
  • Conventions — Integer encodings, counts, error classes and notation used by every page.
  • varint — Unsigned LEB128, at most 10 bytes.
  • zvarint — Zig-zag signed varint.
  • count(limit) — A varint that must not exceed a stated limit.
  • Error classes — Corrupt and NewerFormat, and when each applies.
Store layout (12)
  • Store layout — The directory tree of a store and what lives where.
  • File kinds — Which files are mutable, how each is sealed, and which are authoritative.
  • Lifecycle and atomic install — How a data file becomes part of the store, and the startup sweep.
  • Open sequence — The ordered steps a build performs when it opens a store.
  • Small files — strata.lock, db.id, db.parent, archive.anchor and the keyring file.
  • Derived caches — Rebuildable cache files that are never migrated.
  • ZONES — Zone-map seeds cache.
  • SPANS — Per-file value spans cache.
  • TIERHEAT — Per-file read heat for the cold tier.
  • cache.hot — Hot block list used for warm restart.
  • rcache/ — Cold-tier frame cache.
  • Spill runs — Temporary bulk-load and index-build sort runs.
Encryption (7)
Write-ahead log (8)
  • Write-ahead log — Segments, 4096-byte blocks and records.
  • Segments — File names, preallocation and WAL format numbers.
  • WAL block — The sealed 4096-byte block and its validity rules.
  • Record framing — Length, CRC32C and the logical stream across blocks.
  • Commit record — Timestamp, operations and the optional resolves id.
  • Auxiliary record — Intent and cancel records marked by a zero timestamp.
  • Durability modes — When a commit is acknowledged; the bytes do not change.
  • Recovery — How replay accepts blocks and records.
MANIFEST (15)
SEAM data file (29)
Column codecs (19)
Postings (9)
Key encodings (11)
Catalog records (15)

Read-only layouts (9)

These layouts exist in pre-release stores. SEAM 1 readers accept them so those stores can be opened and migrated, but SEAM 1 writers never produce them.

MANIFEST (1)
SEAM data file (7)
Postings (1)