Commit Graph

139 Commits

Author SHA1 Message Date
zousar shaker
404a8affe6 Attempt shut down of running zenserver process if we find a locked lock file but the pid registered in the lock file can't be found.
If a pid can not be found when finding a matching desired/effective port, keep looking if any other state has a matching port.
Hardened and added logging to NativeIsProcessRunning.

Run of Low Level Tests in Main  here: https://horde.devtools.epicgames.com/job/65e81c5d156d6df40d304906

#jira UE-207039
#rb Zousar.Shaker

#ushell-cherrypick of 31938454 by swarm

[CL 32068216 by zousar shaker in ue5-main branch]
2024-03-06 16:52:12 -05:00
zousar shaker
0c40eb4aef Identify zenserver as Unreal Zen Storage Server in messagebox dialogs and accompanying logs for high priority messages. Ensure google drive warning follows the same messagebox/log logic as other prompts. Eliminate the use of RequestExit from within ZenServerInterface, failure should not force process shutdown.
#rb dan.engelbrecht
#jira UE-208878

[CL 32022078 by zousar shaker in ue5-main branch]
2024-03-05 11:23:40 -05:00
dan engelbrecht
4f7386867d Use process-unique name for zen data directory validity test
Fixes warning "Warning: [CookWorker 2]: Skipping subprocess environment variable UE-ZenSubprocessDataPath=d:/build/++Fortnite/Sync/ZenData due to an invalid path" caused by a race condition between multiple cook workers.
See https://horde.devtools.epicgames.com/log/65dc47bbdd128eaa49c6cc13?lineindex=90207
#jira UE-208562

#rb Zousar.Shaker

[CL 31941714 by dan engelbrecht in ue5-main branch]
2024-03-01 08:58:49 -05:00
zousar shaker
a926360c9d Change default zen data and install directories to be per-user, and clean up old default directories when migrating to a new one.
#rb dan.engelbrecht
#jira UE-205982

[CL 31567090 by zousar shaker in ue5-main branch]
2024-02-16 11:15:16 -05:00
zousar shaker
217c59362e Fix a bug where ZenServer data path would not update if you initiated an editor restart after changing the Global Local Data Cache Path. This was due to environment variable inheritance of UE-ZenSubprocessDataPath. This change ensures that environment variable is cleared as part of shutdown before the editor spawns a new instance of itself. Also fixed some whitespace issues in passing.
#rb dan.engelbrecht
#jira UE-204051

[CL 31521807 by zousar shaker in ue5-main branch]
2024-02-15 11:26:49 -05:00
zousar shaker
10418adbb2 Partial backout (test only) while failure on Linux is investigated.
[Backout] - CL31365105
[FYI] Zousar.Shaker
Original CL Desc
-----------------------------------------------------------------
Fix issue where zenserver fails to launch when DDC path differs between two workspaces.

[FYI] dan.engelbrecht

[CL 31369050 by zousar shaker in ue5-main branch]
2024-02-10 13:08:08 -05:00
zousar shaker
7e9471fdd9 Fix issue where zenserver fails to launch when DDC path differs between two workspaces.
[FYI] dan.engelbrecht

[CL 31369045 by zousar shaker in ue5-main branch]
2024-02-10 13:08:03 -05:00
zousar shaker
9d14e4ace5 Zenserver autolaunch and shutdown unit tests.
#rb dan.engelbrecht

[CL 31340243 by zousar shaker in ue5-main branch]
2024-02-09 10:29:58 -05:00
dan engelbrecht
7dcc88d30d Further hardening of zen service shut down
#jira UE-205143
#rb Stefan.Boberg, Zousar.Shaker

[CL 31331422 by dan engelbrecht in ue5-main branch]
2024-02-09 04:44:22 -05:00
zousar shaker
44a4ac6063 Fix non-editor (program) use cases of Zen AutoLaunch to ensure that they load the editor settings config before accessing it.
#rb dan.engelbrecht

[CL 31295432 by zousar shaker in ue5-main branch]
2024-02-08 13:18:53 -05:00
zousar shaker
969392d5fe Fix for zenserver shutdown and start logic bug. The "return" within the while NativeIsProcessRunning || IsZenProcessUsingEffectivePort loop creates a situation where we can exit the loop before the process is completely gone, meaning the lockfile could still be present.
#jira UE-205971
[FYI] dan.engelbrecht

[CL 31200515 by zousar shaker in ue5-main branch]
2024-02-05 19:47:23 -05:00
dan engelbrecht
5f7a896d20 Validate running processes for zenserver by using native functions directly.
We need to control how the process handle is opened.
#jira UE-205151
#rb stefan.boberg, Zousar.Shaker

[CL 31127942 by dan engelbrecht in ue5-main branch]
2024-02-02 11:42:14 -05:00
dan engelbrecht
7c1c1d6af8 Remove launch zenserver as admin fallback
#rb Stefan.Boberg, Zousar.Shaker

[CL 31063772 by dan engelbrecht in ue5-main branch]
2024-01-31 16:16:41 -05:00
dan engelbrecht
73436364ff Add logging when signalling zenserver event for shutdown fails
#jira UE-205143
#rb Zousar.Shaker

[CL 31055812 by dan engelbrecht in ue5-main branch]
2024-01-31 13:24:32 -05:00
zousar shaker
662d9b1d71 Adjusting logs related to zen usage to:
- Remove repeated log related to fetching cache stats
- Ensure that the Zen cache usage has log lines explaining the status of the caches it attempts to connect to (success or failure)

#rb Matt.Peters

[CL 30710842 by zousar shaker in ue5-main branch]
2024-01-18 22:43:41 -05:00
dan engelbrecht
f4e800d5f8 Add missing changes for CL 30501142 (and 30501566)
For local Zen DDC connections show the path where data is store in the Cache Statistics tab for DDC instead of local ip address
For Zen DDC connection show the storage size
#jira UE-199929
#rb Devin.Doucette

[CL 30504523 by dan engelbrecht in ue5-main branch]
2024-01-09 10:20:00 -05:00
dan engelbrecht
72c28eab28 Add missing changes for CL 30501078
For local Zen DDC connections show the path where data is store in the Cache Statistics tab for DDC instead of local ip address
For Zen DDC connection show the storage size
#jira UE-199929
#rb Dan.Engelbrecht

[CL 30501572 by dan engelbrecht in ue5-main branch]
2024-01-09 06:51:57 -05:00
dan engelbrecht
ba66b561de For local Zen DDC connections show the path where data is store in the Cache Statistics tab for DDC instead of local ip address
For Zen DDC connection show the storage size
#jira UE-199929
#rb Devin.Doucette

[CL 30501101 by dan engelbrecht in ue5-main branch]
2024-01-09 06:08:29 -05:00
dan engelbrecht
8b90143974 Improve error handling in FZenStoreHttpClient::AppendOp
#rb Per.Larsson

[CL 30389972 by dan engelbrecht in ue5-main branch]
2023-12-19 04:54:33 -05:00
steve robb
3f201d5df7 Fixed unreachable code errors.
#rb devin.doucette

[CL 30298450 by steve robb in ue5-main branch]
2023-12-13 13:39:46 -05:00
marc audy
763a611985 Fix C4072 warnings
#rnx

[CL 29852844 by marc audy in ue5-main branch]
2023-11-20 17:26:53 -05:00
zousar shaker
922be064fe Downgrade warning severity messages to display severity when we are unable to reach a remote zenserver (as opposed to a local one).
#rb Devin.Doucette

[CL 29761186 by zousar shaker in ue5-main branch]
2023-11-15 17:17:29 -05:00
steve robb
0bbd5e4d69 Fixed deprecated FString constructors.
#rb james.hopkin

[CL 29690489 by steve robb in ue5-main branch]
2023-11-13 14:15:15 -05:00
zousar shaker
8c02950fa3 Change timeout for zenserver shutdown from 15 seconds to 25 seconds. Experienced zenserver shutdown that was taking 16 seconds.
[FYI] dan.engelbrecht

[CL 29235120 by zousar shaker in ue5-main branch]
2023-10-30 11:30:37 -04:00
zousar shaker
0821a8d6c8 Fixes for zen stats in latest zenserver release.
[FYI] dan.engelbrecht

[CL 28980985 by zousar shaker in ue5-main branch]
2023-10-20 16:45:54 -04:00