aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* | added scrubcontext.cppStefan Boberg2023-05-111-0/+15
|/
* ZEN_LOG_SCOPE compile fixStefan Boberg2023-05-111-1/+1
| | | | previous version would fail with multiple instances in the same scope
* if a block is missing during gc, log an error but still continue (#289)Dan Engelbrecht2023-05-111-4/+8
|
* WARN level log if we can't write snapshot/manifest/access times (#288)Dan Engelbrecht2023-05-113-7/+21
|
* Revert "add timeout to server spawns in tests"Dan Engelbrecht2023-05-111-22/+22
| | | | This reverts commit b8a305713892cb23907ca61e07a70bdfb73ac2f5.
* need to set 'id' for user info in sentry (#287)Dan Engelbrecht2023-05-101-25/+35
|
* Only rewrite state_marker file if it does not exist so we can see the age of itDan Engelbrecht2023-05-101-3/+6
|
* clean up log/index reading and fix incorrect logging about bad log files (#286)Dan Engelbrecht2023-05-103-88/+106
|
* make sure we create gc root directory before checking disk spaceDan Engelbrecht2023-05-101-7/+7
|
* add timeout to server spawns in testsDan Engelbrecht2023-05-101-22/+22
|
* fix return code on tests (#284)Dan Engelbrecht2023-05-101-3/+1
| | | fix help for xmake test
* monitor if a state-maker file still exists, and if not error out and exit (#283)Dan Engelbrecht2023-05-091-0/+25
| | | * monitor if a state-maker file still exists, and if not error out and exit
* add context to MapViewOfFile errors (#282)Stefan Boberg2023-05-093-3/+32
| | | | * added FileSizeFromHandle function * added file size to error message when MapViewOfFile fails
* fixed merge errorStefan Boberg2023-05-091-4/+4
| | | | EmitScopesForLogging -> EmitActivitiesForLogging
* Merge branch 'main' of https://github.com/EpicGames/zenStefan Boberg2023-05-0913-179/+451
|\
| * Low disk space detector (#277)Dan Engelbrecht2023-05-0910-133/+314
| | | | | | | | * - Feature: Disk writes are now blocked early and return an insufficient storage error if free disk space falls below the `--low-diskspace-threshold` value * Never keep an entry in m_ChunkBlocks that points to a nullptr
| * Validate that entries points inside valid blocks at startup (#280)Dan Engelbrecht2023-05-094-46/+137
| | | | | | | | | | * Separate initialization of block store from pruning of unknown blocks * Validate that entries points inside valid blocks
* | make logging tests run as part of zencore-testStefan Boberg2023-05-093-2/+6
|/
* implemented thread-local activity trackingStefan Boberg2023-05-092-0/+194
| | | includes support for on-demand formatting of scope in error messages