Bug 13501 - source date epoch file has race condition where file disappears for a short time
Summary: source date epoch file has race condition where file disappears for a short time
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.8 M4
Assignee: Joshua Watt
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-09-04 02:38 UTC by Joshua Watt
Modified: 2019-10-17 14:47 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Watt 2019-09-04 02:38:00 UTC
Using the sstate-plaindir flag to specify that a single directory should be saved to sstate can race with other tasks if they are attempting to read a file from that directory. This occurs because the sstate code renames the directory to a temporary location to create the sstate object, then renames it back when it is finished, meaning there is a period of time where the directory doesn't exist.
Comment 3 Joshua Watt 2019-10-17 14:47:58 UTC
f5259a62d444dfc221a9ba592dbca35564f794ac
ac27d12fe5480e9b8cc93de6a32bf9631c52d7f4