Bug 13501

Summary: source date epoch file has race condition where file disappears for a short time
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joshua Watt <JPEWhacker>
Component: coreAssignee: Joshua Watt <JPEWhacker>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: unspecified   
Target Milestone: 2.8 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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