I hit this during cook. When the Platform File Journal is invalidated/wrapped, FAssetDataDiscoveryCache::LoadAndUpdateCache() attempts to rename the discovery cache file `Intermediate/CachedAssetRegistryDiscovery.bin`. If the journal wraps on more than one volume, the first rename moves the file successfully, but the second rename (and further) fails with ERROR_FILE_NOT_FOUND because the source file has already been moved. This will produce an error and make cook fail.
The issue shows in the logs as:
- multiple “LogAssetRegistry: Display: PlatformFileJournal journal has wrapped for volume ‘X:’.” (where X is each volume’s letter)
- LogInit: Display: LogFileManager: Error: Error moving file ‘<project_path>/Intermediate/CachedAssetRegistryDiscovery.bin’ to ‘<project-path>/Intermediate/CachedAssetRegistryDiscovery-YYYY.MM.DD-HH.MM.SS.bin’.
It should be easy to prevent this by ensuring that the file is only renamed once.
[Attachment Removed]