rollback-journal · shipping · also SQLite rollback journal, Rollback-mode journal

Rollback journal

A rollback journal is an undo log that preserves original database content so an incomplete transaction can be reversed.

Related Observatory article: Read on hesela.com

SQLite records original page content and the database's starting size before overwriting stored pages. Recovery restores those pages and, when necessary, the original file length. [1] This differs from SQLite WAL mode, which appends changed pages and a commit record to a separate log. [4] Keeping a journal in memory does not provide crash recovery, and disabling journaling removes the ability to undo incomplete transactions. [3] Journal presence alone does not identify an incomplete transaction; SQLite checks whether the journal is hot. [2] See the comparison of recovery boundaries. [6] A disposable process-exit observation demonstrates journal retention after commit and rollback of unfinished writes; it is not a power-loss test. [7]

Relations

related
Hot journal, SQLite super-journal, Write-ahead log, Database checkpoint, Crash consistency, fsync, Persistence ordering, Directory fsync, ZFS transaction group

Advantages

  • Preserves before-images needed to undo changes from an interrupted transaction. [1]

Limitations

  • Recovery depends on the journal remaining available and on working filesystem locks and synchronization. [2]
  • Rollback-mode synchronous=FULL does not guarantee power-loss durability on every filesystem; EXTRA adds protection for DELETE-mode commits. [5]

Citations

  1. SQLite: Atomic Commit In SQLite (accessed 2026-10-14)
  2. SQLite: File Locking And Concurrency In SQLite Version 3 (accessed 2026-10-14)
  3. SQLite: Temporary Files Used By SQLite (accessed 2026-10-14)
  4. SQLite: Write-Ahead Logging (accessed 2026-10-14)
  5. SQLite: PRAGMA synchronous (accessed 2026-10-14)
  6. Hesela: WAL, checkpoints and torn pages, SQLite commit scope (accessed 2026-10-14)
  7. Hesela: SQLite journal-lifecycle observations, measured synthetic workload and explicit limits (accessed 2026-10-14)

JSON: /data/terms/rollback-journal.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Rollback journal. Hesela. 2026-10-15. https://hesela.dev/terms/rollback-journal/