LOG more info on oldest snapshot and sequence numbers
Summary: The info LOG file does not currently give any direct information about the existence of old, live snapshots, nor how to estimate wall time from a sequence number within the scope of LOG history. This change addresses both with:
- Logging smallest and largest seqnos for generated SST files, which can help associate sequence numbers with write time (based on flushes).
- Logging oldest_snapshot_seqno for each compaction, which (along with that seqno info) helps us to determine how much old data might be kept around for old (leaked?) snapshots. Including the date here I thought might be excessive.
I wanted to log the date and seqno of the oldest snapshot with periodic
stats, but the current structure of the code doesn't really support that
because DumpDBStats doesn't have access to the DB object.
Test Plan: manual inspect LOG from
KEEP_DB=1 ./db_basic_test --gtest_filter=*CompactBetweenSnapshots*
@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@pdillinger has updated the pull request. You must reimport the pull request before landing.
@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.