aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* oplog mirror support (#367)Stefan Boberg2023-08-215-1/+173
| | | | feature: added oplog-mirror command. this can be invoked to export oplog contents to corresponding files
* fix trace close (#365)Dan Engelbrecht2023-08-213-0/+8
| | | * Make sure we close our trace session properly
* Run clang tidy on modified filezousar2023-08-181-4/+4
|
* Reduce log level for RLIMIT messagezousar2023-08-181-1/+1
|
* add update/delete endpoint for project and oplog (#353)Dan Engelbrecht2023-08-186-10/+307
| | | | | | | | | | | | | * add update endpoint for project store project * add update endpoint for oplog * changelog * Zen command line tool `project-update` Zen command line tool `project-delete` Zen command line tool `oplog-update` Zen command line tool `oplog-delete` * add --force-update option to project/oplog create remove project/oplog update commnad
* check oplog op attachments when gathering references for GC (#363)Dan Engelbrecht2023-08-182-27/+24
| | | | | * Make sure to check oplog op attachments when gathering references for GC * Add oplog op content to error result if attachment is missing when doing `oplog-export`
* Cache process handles for FormatPackageMessage (#360)Dan Engelbrecht2023-08-177-137/+350
|
* single thread async cache log (#361)Dan Engelbrecht2023-08-173-124/+149
| | | | * rework cache store background jogging * correct capture for context
* skip upstream logic early if we have no upstream endpoints (#359)Dan Engelbrecht2023-08-175-37/+85
| | | | | * Skip upstream logic early if we have not upstream endpoints * make cache store logging of CbObjects async * changelog
* project store stats (#357)Dan Engelbrecht2023-08-144-37/+197
| | | | | | | * add basic stats for project store * stats for BadRequest in ProjectStore::Rpc * changelog * group stats fix ChunkWriteCount when accepting ops
* update vcpkg dependencies (#356)Dan Engelbrecht2023-08-1113-17/+76
| | | | | | * bump vcpkg version * fmt lib 10 fixes * xmake dependencies (with linux workarounds) * changelog
* Make sure we always write "data" attachment hash for snapshotted oplog ↵Dan Engelbrecht2023-08-115-14/+38
| | | | | | | | | entries (#355) * Make sure we always write "data" attachment hash for snapshotted oplog entries * Make sure to add chunk mappings for files moved to attatchment in snapshot operation * fix inverted timoute for expiration (we don't want time expiry in these cases) * increase timeout for jupiter oplog in project to 3 min * changelog
* Add `response.text` to output in log when jupiter request fails (#354)Dan Engelbrecht2023-08-103-36/+72
| | | | | | * Add `response.text` to output in log when jupiter request fails * only hash jupiter ref once and keep that * Increase request timeout when uploading to Jupiter to 2 min (to handle very large attachments) * changelog
* Allow oplog file mapping where ServerPath is missing if a attachment hash is ↵Dan Engelbrecht2023-08-101-4/+9
| | | | specified (#352)
* add extened info in log on all jupiter operation (#350)Dan Engelbrecht2023-08-091-7/+273
|
* minor: set_group('libs') on zenutil for consistency with zencore etcStefan Boberg2023-08-091-0/+1
|
* Add `--assume-http2` option to cloud style import/export command to use a ↵Dan Engelbrecht2023-08-097-4/+37
| | | | HTTP/2 endpoint without without HTTP/1.1 upgrade (#347)
* handle exception in asio header parsing (#348)Dan Engelbrecht2023-08-091-50/+57
| | | | * make sure we return an error code instead of throwing exception if header parsing fails * changelog
* use streaming read for PutCompressedBlob if source is single file (#338)Dan Engelbrecht2023-08-091-1/+18
| | | | * use streaming read for PutCompressedBlob if source is single file * changelog
* Bugfix: `oplog-import` with `--file` source now sends the oplog folder ↵Dan Engelbrecht2023-08-091-1/+1
| | | | correctly to zenserver (#346)
* add more logging on jupiter fail (#345)Dan Engelbrecht2023-08-081-0/+124
| | | | * add more details in log if jupiter operations fail * changelog
* fix asserts and exceptions (#344)Dan Engelbrecht2023-08-083-3/+23
| | | | | | * Send proper error to caller of GetChunkInfo instead of assert * catch and handle exceptions when checking for state_marker * properly wait for background tasks if oplop-export fails * changelog
* try to resolve access token via env variable local first (#337)Dan Engelbrecht2023-08-011-2/+21
| | | * try to resolve access token via env variable local first, on zenserver side second
* make sure we validate pointers returned from zen::Memory::Alloc (#341)Dan Engelbrecht2023-08-013-10/+34
| | | * make sure we validate pointers returned from zen::Memory::Alloc
* add requested item in oplog remote op (#340)Dan Engelbrecht2023-08-015-60/+162
| | | * add more context for oplog import/export errors
* catch exceptions when scheduling GC and when writing GC scheduling state (#339)Dan Engelbrecht2023-08-011-136/+149
| | | * catch exceptions when scheduling GC and when writing GC scheduling state
* removed unnecessary cpr referenceStefan Boberg2023-06-301-4/+0
|
* zen print command fix for large objectsStefan Boberg2023-06-301-2/+2
| | | | also improved help message
* CidStore now implements the ChunkResolver interfaceStefan Boberg2023-06-304-13/+21
| | | | | this allows client code to use the ChunkResolver interface instead of CidStore, which can help with testing scenarios
* clang-format :(Stefan Boberg2023-06-301-12/+12
|
* build fix for ZEN_WITH_TESTSStefan Boberg2023-06-301-1/+6
|
* * Added Guid::FromStringStefan Boberg2023-06-3022-38/+490
| | | | | | | * Added LoadCompactBinaryObject from file to compactbinaryfile.cpp/h * Added SaveCompactBinary(BinaryWriter& Ar, ...) functions * Added ZEN_PLATFORM_NAME define * Added SystemMetrics functionality to query system properties (see zencore/system.h)
* various zenhttp fixes from sb/protoStefan Boberg2023-06-3011-27/+98
| | | | | | | | | * Made HttpHealthService use locks to serialize access to state * Added ToString(HttpResponseCode HttpCode) * Added support for JS source maps * Moved IHttpStatsProvider/IHttpStatsService * Enabled enumeration of stats providers * Disabled build of HttpTestingService unless ZEN_WITH_TESTS is defined
* added zen::ChunkResolverStefan Boberg2023-06-301-0/+9
| | | | cherry-picked from sb/proto to reduce delta
* * added file sharing control to BasicFile (required to implement lockfiles)Stefan Boberg2023-06-302-19/+60
| | | | | * added delete-on-close support to BasicFile * added BasicFile::ReadRange()
* Fix IsProcessRunning on Windows (#335)zousar2023-06-271-1/+12
| | | | IsProcessRunning on Windows would only consider if we could get a handle to a process. It is possible to get a handle to a process even if it is terminated in Windows. To actually know if the process is running, a further call to GetExitCodeProces is required. Addressing this issue ensures that the ZenServerState::Sweep method doesn't keep terminated processes in the state table.
* fix issue where we wouldn't properly configure `zen serve` to talk to a ↵Stefan Boberg2023-06-161-1/+2
| | | | newly spawned server instance
* MakeCloneFromMemory should handle zero sized buffers gracefullyStefan Boberg2023-06-161-2/+9
| | | | we don't currently permit creating zero-length IoBuffer instances to prevent inefficiencies, but this can cause issues since some higher level code now ends up using it for things it was not originally intended for.
* cleaned up http/asio loggingStefan Boberg2023-06-161-7/+7
|
* file share support (#328)Stefan Boberg2023-06-167-42/+353
| | | | | | | | | | | | this change adds a serve command to the zen CLI. This can be used to establish links to a set of files which may be served to clients via the project store interface: ```cmd> zen serve Lyra/WindowsClient d:\temp_share\StagedBuilds\WindowsClient``` with the appropriate changes in UE you may then start an instance of the runtime and have it load all files via the remote file connection: ``` Lyra\Binaries\LyraClient.exe ../../../Lyra/Lyra.uproject -pak -basedir=D:\temp_share\StagedBuilds\WindowsClient/Lyra/Binaries/Win64 -Mount=Lyra/WindowsClient ```
* added ZenServerInstance::SpawnServerAndWait (#334)Stefan Boberg2023-06-162-6/+62
| | | | | this change adds `ZenServerInstance::SpawnServerAndWait()` which as the name implies spawns a server and then waits for the instance to reach a usable state before returning to the caller. It also changes the behaviour of `ZenServerInstance::AttachToRunningServer()` so it matches the Spawn behaviour wrt automatic termination on ZenServerInstance destruction. Previously it would always terminate the subprocess on exit.
* make sure to set error code to zero on successDan Engelbrecht2023-06-161-1/+1
|
* xmake dependency fixesStefan Boberg2023-06-162-21/+22
| | | | | - curl is a dependency of zenhttp, not zencore - zencore only depends on crypto functions from openssl
* added GetProcessIdStefan Boberg2023-06-162-0/+11
| | | | this enables mapping the result of a CreateProc call to an integer pid
* Improve resonse messages from jupiter upstream (#333)Dan Engelbrecht2023-06-152-210/+81
| | | | | | * Improve resonse messages from jupiter upstream changelog * simplify response parsing in jupiter upstream * changelog
* Make sure GetEnvVariable can handle values that are longer than 1023 ↵Dan Engelbrecht2023-06-131-4/+18
| | | | characters (#332)
* add oplog snapshot command (#331)Dan Engelbrecht2023-06-123-0/+91
| | | | * add zen oplog-snapshot command line tool * changelog
* fix jupiter access token for oplog upload (#330)Dan Engelbrecht2023-06-121-1/+1
| | | | * make sure to prefix auth token correctly when provided with a raw token * changelog
* drive-by constStefan Boberg2023-06-121-1/+1
|
* changed ZEN_ERROR to ZEN_WARN to reduce Sentry noiseStefan Boberg2023-06-081-3/+8
| | | | addresses ZEN-SERVER-W5. This should not be logged as an error since the failure is propagated to the client and the failure is typically due to invalid input