Skip to content

Transaction log deletion is database-wide on RocksDB; table-scoped requests are rejected - #618

Open
cb1kenobi wants to merge 3 commits into
mainfrom
fix/2049-rocksdb-table-scoped-txn-log-purge
Open

Transaction log deletion is database-wide on RocksDB; table-scoped requests are rejected#618
cb1kenobi wants to merge 3 commits into
mainfrom
fix/2049-rocksdb-table-scoped-txn-log-purge

Conversation

@cb1kenobi

Copy link
Copy Markdown
Member

Companion to HarperFast/harper#2064 (fixes HarperFast/harper#2049 — RocksDB: table-scoped delete_transaction_logs_before destroys the entire database's transaction log).

Updates reference/database/transaction.md:

  • Adds a delete_transaction_logs_before section: on RocksDB (the default engine) deletion is database-wide because all tables in a database share one transaction log; as of v5.2.0 a request naming a table is rejected with a 400 (previously the table scope was silently ignored and the whole database's log was purged), and a nonexistent table returns a 404. On LMDB, table scopes deletion to that table, unchanged.
  • Notes on delete_audit_logs_before that it is deprecated in favor of delete_transaction_logs_before, and that on RocksDB it always errors since it requires table.

npm run build and npm run format:check pass locally.

Generated by Claude (Fable 5).

🤖 Generated with Claude Code

delete_transaction_logs_before now rejects table-scoped requests on
RocksDB (HarperFast/harper#2049), and the deprecated
delete_audit_logs_before always errors there since it requires table.

Co-Authored-By: Claude Fable 5 <[email protected]>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the database transaction documentation to deprecate the delete_audit_logs_before operation and introduces documentation for the delete_transaction_logs_before operation, detailing its behavior on RocksDB and LMDB. The feedback suggests adding a dedicated ### Transaction Log Operations section header to improve the document's structure and clarity.

Comment thread reference/database/transaction.md
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-618

This preview will update automatically when you push new commits.

@github-actions
github-actions Bot temporarily deployed to pr-618 August 3, 2026 19:41 Inactive
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-618

This preview will update automatically when you push new commits.

@github-actions
github-actions Bot temporarily deployed to pr-618 August 3, 2026 20:38 Inactive
@cb1kenobi
cb1kenobi marked this pull request as ready for review August 3, 2026 20:39
@cb1kenobi
cb1kenobi requested a review from a team as a code owner August 3, 2026 20:39
Comment thread reference/database/transaction.md Outdated
Comment thread reference/database/transaction.md
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

Your preview deployment is ready!

🔗 Preview URL: https://preview.harper-documentation.harperfabric.com/pr-618

This preview will update automatically when you push new commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RocksDB: table-scoped delete_transaction_logs_before destroys the entire database's transaction log

1 participant