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

Extend file operation retry functionality on Windows

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Filesystem API
    • Storage Engines
    • StorEng - Defined Pipeline

      Windows hosts frequently encounter an issue where file operations including rename and drop can be blocked by an anti-virus or similar software having an open file handle on the file.

      Anti-viruses are usually doing this as part of their regular scanning workload. Unfortunately this can crash WT as it doesn't expect file operations to fail. In one such example the incoming (replacement) turtle file was unable to be renamed as part of checkpoint.

      WiredTiger already has a mechanism to retry windows file operation failures. We should extend it to handle additional error codes.

      Scope:

      • Extend the retry macro to retry on EBUSY
      • Consider other error codes such as EAGAIN, if possible log the windows error message returned

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            luke.pearson@mongodb.com Luke Pearson
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: