tikv / rocksdb

A library that provides an embeddable, persistent key-value store for fast storage.
http://rocksdb.org
GNU General Public License v2.0
120 stars 93 forks source link

[DNM] Wal debug 6.29.tikv #356

Open tonyxuqqi opened 8 months ago

tonyxuqqi commented 8 months ago

To debug WAL corruption issues

mittalrishabh commented 8 months ago

@tonyxuqqi What is the WAL recovery mode in tikv ? I guess that it should be kTolerateCorruptedTailRecords.

mittalrishabh commented 8 months ago

which format is tikv using. Seems like rocksdb wal has two formats : legacy and recycle. Recycle format has more debug information (log number) . https://github.com/facebook/rocksdb/wiki/Write-Ahead-Log-File-Format