While running a randomized test/format with backups, I got a failure when attempting to open the backup directory:
[1584366432:138462][11620:0x7f0416ff5700], t, txn-recover: __posix_open_file, 667: RUNDIR/BACKUP/./WiredTigerLog.0000000002: handle-open: open: No s uch file or directory [1584366432:138503][11620:0x7f0416ff5700], t, txn-recover: __wt_txn_recover, 777: Recovery failed: No such file or directory
The backup directory does not have log file 2:
[sue@ip-172-30-0-18 (1) format]$ ls -R RUNDIR RUNDIR: BACKUP CONFIG WiredTiger WiredTigerHS.wt WiredTigerLog.0000000001 WiredTigerLog.0000000003 WiredTiger.turtle wt.wt BACKUP_COPY rand WiredTiger.basecfg WiredTiger.lock WiredTigerLog.0000000002 WiredTigerLog.0000000004 WiredTiger.wt RUNDIR/BACKUP: WiredTiger WiredTigerHS.wt WiredTigerLog.0000000001 WiredTigerLog.0000000004 WiredTiger.wt WiredTiger.basecfg WiredTiger.lock WiredTigerLog.0000000003 WiredTiger.turtle wt.wt
The problem is that log file 2 is missing from the backup.
One of two things is likely the problem, either the backup code incorrectly skipped adding it to the list, or the test code incorrectly did not remove log file 1 when it should have.