Verify RocksDB write durability and checkpoint recovery
Test a RocksDB application
Identify the RocksDB version, binding, database options and column families used by the application. Ask which acknowledged writes must survive a process exit or machine power loss. Record the write-ahead log settings and synchronous write policy used by the actual write path. A successful asynchronous write can survive a process crash while still being vulnerable to loss of OS buffers on machine failure. Disabling the write-ahead log changes recovery guarantees.
skilldb get database-services-skills/rocksdb-durability-and-recoveryFull skill: 20 linesVerify RocksDB write durability and checkpoint recovery
Define the guarantee
Identify the RocksDB version, binding, database options and column families used by the application. Ask which acknowledged writes must survive a process exit or machine power loss. Record the write-ahead log settings and synchronous write policy used by the actual write path. A successful asynchronous write can survive a process crash while still being vulnerable to loss of OS buffers on machine failure. Disabling the write-ahead log changes recovery guarantees.
Build a recovery fixture
Work on a disposable database with a fresh filesystem path. Use the application's comparator and options. Insert two unique sentinel keys through its normal write path and check the returned statuses. For a group of changes that must appear together, submit one WriteBatch. Atomicity and durability answer different questions. Record the expected values and the precise boundary at which the application acknowledged them.
Use the binding's Checkpoint facility to create a checkpoint in a new directory. Record the checkpoint completion status. Change one sentinel in the source after the checkpoint. Open a separate copy of the completed checkpoint using the correct column families and verify it contains the old value and the other sentinel. Preserve the original checkpoint for a repeat test.
Interpret the evidence
Repeat the process-termination test in a sandbox and inspect the reopened database. Label this result as a process-crash test. A process exit does not test power-loss durability. Record the difference between expected and observed keys, options and library version. A same-volume checkpoint may share immutable files with the running database. For a device-loss recovery requirement, copy the completed checkpoint to independent storage and prove recovery from that copy. Stop if the only available test target is a live application database.
Install this skill directly: skilldb add database-services-skills
Related Skills
Inspect SQL Server Query Plans and Verify Backups
Diagnose a SQL Server query using representative plan evidence and validate that the database can be restored in an isolated environment.
Supabase
Build with Supabase as a backend-as-a-service. Use this skill when the project needs to integrate Supabase for PostgreSQL database, authentication, real-time subscriptions, storage, edge functions, row-level security, vector embeddings, or as a Firebase alternative. Covers the Supabase client SDK, database queries, auth, RLS policies, real-time, storage, and edge functions.
Timescaledb
Build with TimescaleDB for time-series data. Use this skill when the project needs to store and query time-series data such as IoT sensor readings, application metrics, financial tick data, or event logs. Covers hypertables, continuous aggregates, compression, retention policies, and real-time analytics on top of PostgreSQL.
Turso
Build with Turso as an edge SQLite database. Use this skill when the project needs to integrate Turso (libSQL) for edge-distributed SQLite, embedded replicas, multi-tenant databases, or lightweight serverless data storage. Covers the Turso client SDK, embedded replicas, multi-db, schema migrations, and ORM integration.
Verify Embedded Go Key-Value Storage with BadgerDB and Pebble
Exercise BadgerDB transactions or Pebble batches in a disposable Go fixture, distinguish missing keys from failed reads, and verify the application can reopen its committed records.
Cassandra
Build with Apache Cassandra for high-availability distributed data. Use this skill when the project needs a wide-column database for massive write throughput, multi-region replication, or always-on availability. Covers data modeling, partition keys, CQL, the cassandra-driver for Node.js, and operational patterns for production clusters.