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

Incr_backup leaves nested test artefacts

    • Storage Engines, Storage Engines - Persistence
    • SE Persistence - 2025-05-09
    • 2

      When running ./test_incr_backup in test/csuite/incr_backup there are remaining test artefacts even when the preserve flag is not set.

      When we get to the cleanup point, we successfully remove a WT_TEST.incr_backup. Though it happens to be one of a nested few of WT_TEST.incr_backup that have been generated

      Current working directory before we get to the cleanup point is:

      home/ubuntu/wiredtiger/build/test/csuite/incr_backup/WT_TEST.incr_backup/WT_TEST.incr_backup/WT_TEST.incr_backup
      

      When we get to the cleanup point, testutil_remove is given WT_TEST.incr_backup to remove. This exits successfully but other WT_TEST files still exist in parent directories.

      ubuntu in ~/wiredtiger/build/test/csuite/incr_backup on (develop)
      $ ls WT_TEST.incr_backup/WT_TEST.incr_backup/
      WT_HOME  WT_TEST.incr_backup  backup.7
      

      Potential approaches:

      • Saving the original WT_TEST as an absolute path so that we can later chdir into it and delete easily
      • Or simply chdir into home before deletion

      Definition of done: fix incr_backup test cleanup so that there are no nested WT_TEST directories remaining when the preserve flag is not set.

            Assignee:
            mariam.mojid@mongodb.com Mariam Mojid
            Reporter:
            mariam.mojid@mongodb.com Mariam Mojid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: