cockroachdb / pebble

RocksDB/LevelDB inspired key-value database in Go
BSD 3-Clause "New" or "Revised" License
4.94k stars 458 forks source link

db: improve logging observability into WAL failover #4162

Open jbowens opened 1 week ago

jbowens commented 1 week ago

We should improve the observability into WAL failover via diagnostic logs.

We could at least log when we switch between primary and secondary.

We should also look at improving the WAL replay logic to ensure we log sufficient information about which physical WALs were read during recovery.

Jira issue: PEBBLE-302