Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-36079

WiredTigerKVEngineRepairTest should not move a file while it is being accessed

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • ALL
    • Storage NYC 2018-07-16
    • 15

      There are two problems with this test on Windows, both of which result in an error message: "The process cannot access the file because it is being used by another process"

      1. The data file is renamed while the storage engine has an open handle on it. In this case, I think the file can be copied instead.

      2. On line 220, for reasons unknown, the data file is still busy even after the ident is dropped. https://github.com/mongodb/mongo/blob/bccb252836954ac1963f8daf0d7bbdcf7af1d01c/src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine_test.cpp#L220 this fix should also attempt to ensure the file has been delete, possibly by force deleting it.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: