Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900051

jtreg cleanup intermittently fails to delete files on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • windows_7

      On occasion, jtreg reverses a successful test result when it is unable to delete a file in the test directory. This has happened with a number of different tests and is difficult to reproduce. It is believed to be caused by the asynchronous nature of file deletion on Windows. The successful return of File.delete() only signifies that the delete is pending, not that it has completed the file deletion successfully. This can happen when another process such as a search indexer or a virus scanner holds a handle to the file pending deletion. The deletion is not completed until all such handles are released. Adding retry logic on cleanup will ameliorate this situation.

            jgish Jim Gish (Inactive)
            jgish Jim Gish (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: