README says the old store WAS the data directory; it was only pointed at it, with the RocksDB files in data/ #4

Open
opened 2026-11-23 04:32:45 +00:00 by pallas · 0 comments
Member

Purpose (defect): nobody deletes graph.sqlite's data directory believing it is "the old store".

DECIDED 2026-11-23 "Drop the migration (Recommended)" (Raf). The old store is deleted by the fleet change after the cutover, and that delete is Raf's menu.

Found by Mars at Jupiter's PASS on PR 2 (3fef4ea), 2026-11-23: the README and the CHANGELOG disagree on where the old store lived, and the README's reading — "the data directory itself" — is the one that gets the wrong thing deleted. The fleet cleanup that follows this cutover deletes the old store, and after this release <MCL_DATA_DIR> holds graph.sqlite: the live graph.

What is true

The 0.6.0 release opened CozoDB's RocksDB on the data directory itself, and cozo then put its files in <MCL_DATA_DIR>/data/, with cozo's own manifest beside that. That is 0.6.0's own code, in mcl_graph_migrate's header at 5113d67:

RocksDB's own pointer to its manifest, and where cozo keeps it: the store is opened on the data directory itself, so cozo puts the RocksDB files in <data dir>/data and its own manifest beside that.

and the Supervisor's read at beam01 (2026-11-23 03:50Z) matches it: /bulk0/mcl-graph/data holds the one 2109-byte sst.

Path 0.6.0 this release fleet cleanup
<MCL_DATA_DIR> — on beam01 /bulk0/mcl-graph the path cozo was given holds graph.sqlite KEEP
<MCL_DATA_DIR>/data/ — /bulk0/mcl-graph/data the RocksDB store: one 2109-byte sst never read delete
<MCL_DATA_DIR>/manifest cozo's RocksDB manifest never read delete
<MCL_DATA_DIR>/graph.sqlite — /bulk0/mcl-graph/graph.sqlite absent the live graph KEEP

So the fleet cleanup deletes /bulk0/mcl-graph/data and /bulk0/mcl-graph/manifest, and never /bulk0/mcl-graph. Anything that deletes mount-level is wrong.

The wording to fix

  • README.md, "The store" (at 3fef4ea): "An earlier release kept the graph in a RocksDB directory — the data directory itself." That describes where cozo was pointed, not where the files are, and reads as a licence to delete the data directory. It should say the earlier release was pointed at the data directory, with CozoDB's files in data/ beneath it, and name the two paths the cleanup deletes.
  • CHANGELOG.md, Unreleased: "The old RocksDB directory under the data directory" is right but only just; it says the same thing in as many words, so both files agree.

When

Not a push of its own: PR 2 had passed and was queued to land when this was found, and the fleet package that does the delete names the exact paths itself. Fix it in the next mcl-graph change, and fold this wording into whatever names the cleanup paths.

Refs macula-io/macula-ci-images#19; found on macula-services/mcl-graph PR 2 at 3fef4ea.

Purpose (defect): nobody deletes `graph.sqlite`'s data directory believing it is "the old store". DECIDED 2026-11-23 "Drop the migration (Recommended)" (Raf). The old store is deleted by the fleet change after the cutover, and that delete is Raf's menu. Found by Mars at Jupiter's PASS on PR 2 (`3fef4ea`), 2026-11-23: the README and the CHANGELOG disagree on where the old store lived, and the README's reading — "the data directory itself" — is the one that gets the wrong thing deleted. The fleet cleanup that follows this cutover deletes the old store, and after this release `<MCL_DATA_DIR>` holds `graph.sqlite`: the live graph. ## What is true The 0.6.0 release opened CozoDB's RocksDB **on the data directory itself**, and cozo then put its files in `<MCL_DATA_DIR>/data/`, with cozo's own `manifest` beside that. That is 0.6.0's own code, in `mcl_graph_migrate`'s header at `5113d67`: > RocksDB's own pointer to its manifest, and where cozo keeps it: the store is opened on the data directory itself, so cozo puts the RocksDB files in `<data dir>/data` and its own `manifest` beside that. and the Supervisor's read at beam01 (2026-11-23 03:50Z) matches it: `/bulk0/mcl-graph/data` holds the one 2109-byte sst. | Path | 0.6.0 | this release | fleet cleanup | |---|---|---|---| | `<MCL_DATA_DIR>` — on beam01 `/bulk0/mcl-graph` | the path cozo was given | holds `graph.sqlite` | **KEEP** | | `<MCL_DATA_DIR>/data/` — `/bulk0/mcl-graph/data` | the RocksDB store: one 2109-byte sst | never read | delete | | `<MCL_DATA_DIR>/manifest` | cozo's RocksDB manifest | never read | delete | | `<MCL_DATA_DIR>/graph.sqlite` — `/bulk0/mcl-graph/graph.sqlite` | absent | the live graph | **KEEP** | So the fleet cleanup deletes `/bulk0/mcl-graph/data` and `/bulk0/mcl-graph/manifest`, and never `/bulk0/mcl-graph`. Anything that deletes mount-level is wrong. ## The wording to fix - **README.md, "The store"** (at `3fef4ea`): "An earlier release kept the graph in a RocksDB directory — the data directory itself." That describes where cozo was pointed, not where the files are, and reads as a licence to delete the data directory. It should say the earlier release was pointed at the data directory, with CozoDB's files in `data/` beneath it, and name the two paths the cleanup deletes. - **CHANGELOG.md, Unreleased**: "The old RocksDB directory under the data directory" is right but only just; it says the same thing in as many words, so both files agree. ## When Not a push of its own: PR 2 had passed and was queued to land when this was found, and the fleet package that does the delete names the exact paths itself. Fix it in the next mcl-graph change, and fold this wording into whatever names the cleanup paths. Refs macula-io/macula-ci-images#19; found on macula-services/mcl-graph PR 2 at `3fef4ea`.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
macula-services/mcl-graph#4
No description provided.