aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* implemented subtree copyingStefan Boberg2023-05-161-4/+103
|
* demote state_marker deletion detection to warningDan Engelbrecht2023-05-161-1/+1
|
* exit without SIGABRT if exception is thrown during startup (#313)Dan Engelbrecht2023-05-161-7/+41
| | | | | * Safeguard ZenServer::RequestExit() and ZenServer::Cleanup() when partially initialized * Set exit code to non-zero if exception is thrown in ZenEntryPoint::Run() * changelog
* Additional trace instrumentation (#312)Stefan Boberg2023-05-169-9/+139
| | | | | | | | | * added trace instrumentation to upstreamcache * added asio trace instrumentation * added trace annotations for project store * added trace annotations for BlockStore * added trace annotations for HttpClient * added trace annotations for CAS/GC
* Moved EnableVTMode function into zencore (#311)Stefan Boberg2023-05-164-53/+38
|
* Add `--gc-projectstore-duration-seconds` option (#281)Dan Engelbrecht2023-05-1610-97/+140
| | | | | | * Add `--gc-projectstore-duration-seconds` option * Cleanup lua gc options parsing * Remove dead configuration values * changelog
* clear partially formatted response if request fails (http asio) (#310)Dan Engelbrecht2023-05-161-0/+3
| | | | * simplfy error response by dropping partially formatted response * Update CHANGELOG.md
* removed RefCounted from ZenCacheNamespaceStefan Boberg2023-05-151-2/+13
| | | | also added some class comments
* zenserver does not support test mode in releaseStefan Boberg2023-05-151-0/+5
|
* removed remnants of ZEN_USE_REF_TRACKINGStefan Boberg2023-05-153-47/+0
| | | | this code was originally meant to be used for GC but is no longer needed
* added error reporting for bad BlockStore chunksStefan Boberg2023-05-151-5/+22
| | | | also eliminated some copy-paste
* removed unnecessary #include directives from cas.hStefan Boberg2023-05-151-10/+3
|
* MaxOS build fix: ScrubStorage must be overrideStefan Boberg2023-05-151-10/+16
|
* added ScrubStorage to GcStorage base classStefan Boberg2023-05-157-18/+42
|
* added scrubbing related loggingStefan Boberg2023-05-152-0/+6
|
* added static_assert for BlockStoreDiskLocationStefan Boberg2023-05-151-0/+2
|
* corrected CidStore commentStefan Boberg2023-05-151-4/+0
|
* Added some comments to ZenServerInstance etcStefan Boberg2023-05-151-10/+18
|
* CidStore::Impl explicit constructor, fixed #ifndef NDEBUGStefan Boberg2023-05-151-3/+4
|
* minor GC API cleanupStefan Boberg2023-05-1518-73/+73
| | | | | Scrub -> ScrubStorage Trigger -> TriggerGc (to make relationship to TriggerScrub clearer)
* some HttpClient changes eliminating some cpr helpersStefan Boberg2023-05-152-21/+33
|
* added some top-level trace scopes to httpsys implStefan Boberg2023-05-151-0/+5
|
* SetCurrentThreadName now sets thread name in traceStefan Boberg2023-05-151-10/+14
|
* brought over minor IoBuffer changes from sb/scrubStefan Boberg2023-05-152-0/+3
| | | | no actual code changes, just comments
* added IoBuffer.mmap test caseStefan Boberg2023-05-151-0/+27
| | | | | | this verifies that attempting to map a range outside the underlying file fails. Posix appears to offer different semantics so it silently accepts it still however.
* disable warning C5105 in ZEN_THIRD_PARTY_INCLUDES_STARTStefan Boberg2023-05-152-7/+8
|
* auto -> typed declarationsStefan Boberg2023-05-151-2/+3
|
* removed excessive ZEN_UNUSED declsStefan Boberg2023-05-151-2/+2
| | | | done primarily to remove diffs from upcoming PR
* Remove ZEN_CACHE_TRACKER etcStefan Boberg2023-05-154-437/+0
| | | this was code which was originally intended for use with GC but it's no longer useful
* Better defaults for zen cli (#302)Stefan Boberg2023-05-158-23/+254
| | | | | added ZenCmdBase::ResolveTargetHostSpec - this is a helper which provides better default behaviour for commands which interact with a local zen server instance. more specifically it picks a default based on which processes are actually running on the local machine this change also wires up the Scrub command along with some required HttpClient improvements
* added trace::DescribeSession to TraceInitStefan Boberg2023-05-151-7/+13
| | | | | without this, traces rather unhelpfully show up with no context in the session browser
* Ensure WorkerThreadPool tests always runStefan Boberg2023-05-151-0/+2
|
* Assign auth thread a nameStefan Boberg2023-05-151-0/+2
|
* Merge branch 'main' of https://github.com/EpicGames/zenStefan Boberg2023-05-1518-111/+780
|\
| * Remove ATL header usage (#306)Stefan Boberg2023-05-1513-71/+520
| | | | | | ATL has been used here and there as a convenience. Given that this is a legacy component and not always something which gets installed along with the compiler we hereby remove the dependency altogether in favour of our own simple wrappers
| * all threads should be named (#304)Stefan Boberg2023-05-155-40/+260
| | | | | | | | | | | | | | * added WorkerThreadPool naming, packaged_task support * name the http.sys thread pool service threads * added http.sys I/O threadpool naming * upstream cache I/O thread naming
* | implemented string conversion for CbValidateError enumStefan Boberg2023-05-152-0/+44
|/
* wipe cache buckets block store that may contain invalid state (#300)Dan Engelbrecht2023-05-121-0/+14
| | | | * wipe cache buckets block store that may contain invalid state * Update CHANGELOG.md
* fix gc bucket index compaction (#299)Dan Engelbrecht2023-05-121-4/+5
| | | | * fix compaction of m_Payloads and m_AccessTimes in ZenCacheDiskLayer::CacheBucket * changelog
* implemented structured cache logging (#296)Stefan Boberg2023-05-125-13/+111
| | | | | | | | may be used as audit trail to help analyse potential cache pollution/corruption * also added common header with timestamp to all known log targets * made `Oid::operator bool` explicit to avoid logging/text format mishaps * made `HttpClient::operator bool` explicit
* better logging/exception when reading file in IoBuffer::Materialize fails (#294)Dan Engelbrecht2023-05-121-8/+37
| | | | * better logging/exception when reading file in IoBuffer::Materialize fails * changelog
* fix logic for old blocks in blockstore gc (#295)Dan Engelbrecht2023-05-121-21/+24
| | | | | | | * fix logic for old blocks in blockstore gc If we will remove all entries in a block and keep nothing we can't expect for the block to exist. If we want to keep entries in a block, the block must exist, if not error and move entries to delete list. Don't reset output block between blocks we are reading from, keep using it until it exceeds the max limit. * changelog
* Gracefully exit if Ctrl-C is pressed (#293)Dan Engelbrecht2023-05-114-5/+49
| | | | | * Feature: Gracefully exit if Ctrl-C is pressed * Bugfix: Return error code on exit as set by application * changelog
* allow early logging (#292)Dan Engelbrecht2023-05-112-5/+7
| | | | * if logging is not initialized, just log to console * changelog
* clang-format (sorry)Stefan Boberg2023-05-111-1/+1
|
* build fix (accidental commit on the wrong branch)Stefan Boberg2023-05-112-1/+4
|
* clang-formatStefan Boberg2023-05-111-1/+3
|
* Merge branch 'main' of https://github.com/EpicGames/zenStefan Boberg2023-05-1110-34/+101
|\
| * flush file cas on exit (#291)Dan Engelbrecht2023-05-112-24/+33
| | | | | | | | | | | | | | | | * flush caslog and index snapshot on flush * fix save reading of index/logfile with cleanup write snapshot at flush * don't validate entries we just scanned/created * fix total size found when scanning for cas files * changelog
| * Close down http server gracefully when exiting even while requests are still ↵Dan Engelbrecht2023-05-118-10/+68
| | | | | | | | | | being processed (#290) * Close down http server gracefully when exiting even while requests are still being processed