Storage glossary · JSON corpus · llms.txt · hesela.com

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: Rollback journal 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 rollback protection. [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

Advantages

Limitations

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