Mehdi Akiki

Posts tagged "reliability"

  • Published on

    Investigation · Part 13 of 20 · What survives a crash

    How SQLite Commits a Transaction, Followed With strace

    One INSERT in SQLite's default rollback journal mode makes four sync calls on my laptop. I followed every write with strace, compared FULL, EXTRA, NORMAL and OFF, and found the one directory sync that FULL leaves out, as the SQLite documentation says.
  • Published on

    Investigation · Part 12 of 20 · What survives a crash

    When fsync Fails: What PostgreSQL Learned in 2018

    My program got EIO from fdatasync, called it again and got ok. In 2018 PostgreSQL learned why that second ok can be a lie on Linux. I tell the documented story, then inject fsync errors into my store with an LD_PRELOAD shim, and I say what the shim cannot show.
  • Published on

    Article · Interrupted execution

    Resuming a Paginated Import After Page 417 Fails

    A paginated import should resume from a committed cursor and stable item identities, not from a human page number that may no longer describe the same data.