Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5857

Prepend homedir for system call pathnames in format backup test

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 3
    • Storage Engines 2020-03-23
    • v4.4, v4.2

      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.

            Assignee:
            sue.loverso@mongodb.com Susan LoVerso
            Reporter:
            sue.loverso@mongodb.com Susan LoVerso
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: