System.IO.IOException: Unable to remove the file to be replaced.
at System.IO.FileSystem.ReplaceFile(String sourceFullPath, String destFullPath, String destBackupFullPath, Boolean ignoreMetadataErrors)
at Tenray.ZoneTree.AbstractFileStream.LocalFileStreamProvider.Replace(String sourceFileName, String destinationFileName, String destinationBackupFileName)
at Tenray.ZoneTree.AbstractFileStream.DurableFileWriter.WriteAllBytes(String path, Byte[] bytes)
at Tenray.ZoneTree.Core.ZoneTreeMetaWAL`2.SaveMetaData(ZoneTreeMeta zoneTreeMeta, Int64 mutableSegment, Int64 diskSegment, Int64[] readOnlySegments, Int64[] bottomSegments, Boolean createNew)
at Tenray.ZoneTree.Core.ZoneTreeLoader`2.LoadZoneTreeMetaWAL()
at Tenray.ZoneTree.Core.ZoneTreeLoader`2.LoadZoneTree()
at Tenray.ZoneTree.ZoneTreeFactory`2.OpenOrCreate()
The Internet seems to suggest that this call can fail if there are any FileSystemWatchers applied to the directory, which can happen incidentally due to various programs (VSCode, etc.)