Skip to content

Microsoft.Extensions.FileProviders.Physical.Tests Failing With DirectoryNotFoundException #44626

Closed

Description

@steveisok

I'm seeing intermittent failures across both runtimes that end up with the following exception:

Unhandled Exception:
System.IO.DirectoryNotFoundException: Could not find a part of the path '/tmp/gq0eerpt.0j2'.
   at System.IO.Enumeration.FileSystemEnumerator`1[[System.IO.FileSystemInfo, System.IO.FileSystem, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].CreateDirectoryHandle(String path, Boolean ignoreNotFound) in /_/src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerator.Unix.cs:line 79
   at System.IO.Enumeration.FileSystemEnumerator`1[[System.IO.FileSystemInfo, System.IO.FileSystem, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]].Init() in /_/src/libraries/System.IO.FileSystem/src/System/IO/Enumeration/FileSystemEnumerator.Unix.cs:line 39
   at System.IO.Enumeration.FileSystemEnumerator`1[[System.IO.FileSystemInfo, System.IO.FileSystem, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a]]..ctor(String directory, Boolean
...

Here's a helix log from 44611 for reference.

This seemed to have happened at least 16 times in the last day.

Activity

  1. danmoseley commented on Nov 13, 2020

    @danmoseley
    Contributor

    @eerhardt I can't look right now but didn't this recently change to stop polling? Maybe that made this more common?

  2. eerhardt commented on Nov 13, 2020

    @eerhardt
    Member

    These tests were just changed with #41426.

    cc @ericstj @maryamariyan

  3. ericstj commented on Nov 13, 2020

    @ericstj
    Member

    I’ll fix this. I introduced with the inotify test. What’s happening is that the timer thread doesn’t fire until after the test is done and disposing the watcher didn’t successfully cancel it. I had a fix for this but pulled it out after I stopped seeing the problem. For now the quickest fix is to move inotify test to outer loop.

  4. self-assigned this
    on Nov 13, 2020
  5. added
    test-bugProblem in test source code (most likely)
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    and removed
    untriagedNew issue has not been triaged by the area owner
    on Nov 13, 2020
  6. stephentoub commented on Nov 13, 2020

    @stephentoub
    Member

    Reopening to track actually fixing the (now outerloop) test.

    Related to #44652.

  7. removed
    blocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
    on Nov 13, 2020
  8. added this to the 6.0.0 milestone on Nov 13, 2020
  9. ericstj commented on Nov 13, 2020

    @ericstj
    Member

    @stephentoub my intent was to use the new issue to track a better fix to the outerloop test.

  10. ghost locked as resolved and limited conversation to collaborators on Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions