Description

This problem is caused by the AccessLogWriter has not been flushed at the termination.
The following workaround flushes the Writer.
 

class FFileSystemDerivedDataBackend : public FDerivedDataBackendInterface
{
...
	FFileSystemDerivedDataBackend(const TCHAR* InCacheDirectory, const TCHAR* InParams, const TCHAR* InAccessLogFileName)
		: CachePath(InCacheDirectory)
		, SpeedClass(ESpeedClass::Unknown)
		, bReadOnly(false)
		, bTouch(false)
		, bPurgeTransient(false)
		, DaysToDeleteUnusedFiles(15)
		, bDisabled(false)
		, TotalEstimatedBuildTime(0)
	{
...
			if (IsUsable() && InAccessLogFileName != nullptr && *InAccessLogFileName != 0)
			{
				AccessLogWriter.Reset(new FAccessLogWriter(InAccessLogFileName));
				FCoreDelegates::OnExit.AddRaw(this, &FFileSystemDerivedDataBackend::Shutdown); // workaround
			}
		}
	}
//workaround begins
	void Shutdown()
	{
//		UE_LOG(LogTemp, Warning, TEXT("FFileSystemDerivedDataBackend::Shutdown") );
		AccessLogWriter.Reset(nullptr);
	}
//workaround ends
Steps to Reproduce
  1. Create a project
  2. Put following config in DefaultEngine.ini (the detail is here ) and replace the path in your environment
    [EnumerateForS3DDC]
    MinimumDaysToKeepFile=7
    Root=(Type=KeyLength, Length=120, Inner=AsyncPut)
    AsyncPut=(Type=AsyncPut, Inner=Hierarchy)
    Hierarchy=(Type=Hierarchical, Inner=Shared)
    Shared=(Type=FileSystem, ReadOnly=false, Clean=false, Flush=false, DeleteUnused=true, UnusedFileAge=5, FoldersToClean=10, MaxFileChecksPerSec=1, Path=F:\dev\sharedddc, EnvPathOverride=UE-SharedDataCachePath, WriteAccessLog="%GAMEDIR%Saved/Logs/DDCAccessLog.txt")
    
  1. Once the editor launched, close the editor
  2. see /saved/logs/DDCAccessLog.txt

Result

This is an example of its output. The halfway line is at the end.

...
5/0/1/ANIMSEQ_D8E26604610C43A4A2DCB8A690657705_0_E86C19E4F5484BB57AF1A871A6D5AB9460E__3F6311423AC1251F647B71CA9A114B69366A4514.udd
3/2/9/ANIMSEQ_D8E26604610C43A4A2DCB8A690657705_0_C14C3B98EEF7A73BA89CA17CE28931A460E__FCBCF82321C6868708B183EE235A8F8EAE1DF811.udd
7/7/9/TEXTURE_2D528FAD496A42E180956107C6FFBD67_BGRA8_9E839E0E4933277AAB67FB869C14F9A__D9794B59901D592EC2E38578B3DB363086D77D5F.udd
2/2/5/TEXTURE_2D528FAD496A42E180956107C6FFBD67_BGRA8_748D4F054C3030AC8888BEA1993C93A__216FF8DE42F5B64CC0A5B848F5C5CCD72236F045.udd
9/6/3/TEXTURE_2D528FAD496A42E180956107C6FFBD67_BGRA8_748D4F054C3030AC8888BEA1993C93A__4AF0321350901D5DA6F672EB1ACD96C859C2CA70.udd
4/1/7/TEXTURE_2D528FAD496A42E180956107C6FFBD67_BGRA8_748D4F054C3030AC8888BEA1993C93A__980C44EFA3E05F3105F9965AB5C833C7A06A268D.udd
8/0/7/TEXTUR

 

 

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-116166 in the post.

0
Login to Vote

Fixed
ComponentUE - Foundation - Core - Derived Data
Affects Versions4.26
Target Fix5.0
Fix Commit19092848
Main Commit19096234
Release Commit19092848
CreatedMay 20, 2021
ResolvedFeb 23, 2022
UpdatedJan 26, 2023
View Jira Issue