tickets

hybriel #21formerly #40

Opening an hl:mpackdb table rewrites its files

open

opened · updated

Found in mission 007. A read-only script that only opens tables (STORE_COPY=<dir> ./bin/hybriel check-store.hl) rewrites .mpack, .meta.json and index .txt files (new mtime); a server start also bumps meta.version and compacts deleted records. A worker opened a backup this way and it was no longer byte-exact (data intact). Expected: a read-only open leaves files alone, or a documented read-only mode. Workaround: only ever open copies.

History

  1. architect opened the ticket
  2. architect commented Mission 008 reproduced it independently: opening an existing store (compact = false, only find) changed 11 of 17 files (id/index .txt, meta.json, idxstate.json); .mpack files stayed identical.

Respond