This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author coroa
Recipients Jeffrey.Kintscher, coroa, dkg, giampaolo.rodola, iritkatriel, jesse.farnham, noamda, serhiy.storchaka
Date 2021-12-14.21:57:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1639519058.74.0.237704605528.issue29699@roundup.psfhosted.org>
In-reply-to
Content
Just realised that the "race condition" is triggered consistently on Mac OSX machines working on non-Mac filesystems, where they store extended attributes like last access time in meta files with a `._` prefix. These files are listed by `os.scandir` after their original files and are removed, as soon as the original file is unlinked.

Ie. a test.txt, ._test.txt pair will always raise FileNotFoundError for ._test.txt since the file system driver itself already removed it when the unlink on test.txt was executed.

Refer also to https://stackoverflow.com/a/70355470/2873952.

Current status seems to be:
1. https://bugs.python.org/issue29699 and https://bugs.python.org/issue37260 are duplicates.
2. https://github.com/python/cpython/pull/13580 linked from here has been closed due to lack of unit tests (but with the possibility to re-open after providing those)
3. https://github.com/python/cpython/pull/14064 is still open and seems to be mostly the same patch, does have unit tests and awaiting a second review.

What is the next step?
History
Date User Action Args
2021-12-14 21:57:38coroasetrecipients: + coroa, giampaolo.rodola, serhiy.storchaka, dkg, jesse.farnham, Jeffrey.Kintscher, iritkatriel, noamda
2021-12-14 21:57:38coroasetmessageid: <1639519058.74.0.237704605528.issue29699@roundup.psfhosted.org>
2021-12-14 21:57:38coroalinkissue29699 messages
2021-12-14 21:57:38coroacreate