aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* test: verify saved checksums in streaming putobject testsfix-824Alex Auvolat5 days1-1/+13
|
* api: PutObject: save trailer checksum in metadataAlex Auvolat5 days1-6/+25
|
* api: various fixesAlex Auvolat5 days6-32/+34
|
* update aws-sdk-s3 in tests and fix wrong checksumming behavior in GetObjectAlex Auvolat5 days4-9/+31
|
* api: validate trailing checksum + add test for unsigned-paylad-trailerAlex Auvolat5 days8-88/+336
|
* api: fix optional \n after trailer checksum headerAlex Auvolat5 days1-1/+6
|
* api: remove content-encoding: aws-chunked for streaming payloadAlex Auvolat5 days1-1/+19
|
* api: streaming signature: fix trailer parsingAlex Auvolat5 days1-10/+13
|
* api: refactor: move checksumming code around againAlex Auvolat6 days8-147/+127
|
* api: use checksumming in api_common::signature for put/putpartAlex Auvolat6 days6-66/+162
|
* api: start refactor of signature to calculate checksums earlierAlex Auvolat6 days21-231/+288
|
* api: streaming: parse unsigned streaming bodies and payload trailersAlex Auvolat6 days1-146/+304
|
* api: add logic to parse x-amz-content-sha256Alex Auvolat7 days8-72/+138
|
* api: refactor: move checksum algorithms to commonAlex Auvolat7 days13-171/+210
|
* signature: refactor: move constant defs to mod.rsAlex Auvolat7 days3-26/+50
|
* Merge pull request 'fix compilation warnings' (#959) from fixes into mainAlex9 days6-14/+13
|\ | | | | | | Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/959
| * fix warning in garage testAlex Auvolat9 days1-5/+1
| |
| * garage_api_s3: remove unused field in ListPartsQueryAlex Auvolat9 days2-4/+0
| |
| * garage_model: fix warning about dead codeAlex Auvolat9 days2-2/+9
| |
| * fix deprecated uses of chrono in lifecycle workerAlex Auvolat9 days1-3/+3
| |
* | s3api: return Location in CompleteMultipartUpload (fix #852)Alex Auvolat9 days1-1/+10
|/ | | | | NB. The location returned is not guaranteed to work in all cases. This already fixes the parse issue in #852.
* block manager: avoid deadlock in fix_block_location (fix #845)Alex Auvolat9 days1-14/+4
|
* block resync: avoid saving blocks to draining nodesAlex Auvolat9 days1-1/+23
|
* block manager: improve read strategy to find blocks fasterAlex Auvolat9 days1-9/+64
|
* block manager: write blocks only to currently active layout version (fix #815)Alex Auvolat9 days2-2/+7
| | | | | avoid wastefully writing blocks to nodes that will discard them as soon as the layout migration is finished
* Merge pull request 'web_server.rs: Added bucket domain to observability' ↵Alex9 days3-15/+39
|\ | | | | | | | | | | (#608) from jpds/garage:domain-web-requests into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/608
| * add configuration option to enable/disable monitoring bucket in web metricsAlex Auvolat9 days3-30/+26
| |
| * web_server.rs: Added bucket domain to observability.Jonathan Davies9 days1-6/+34
| |
* | Merge pull request 's3 api: parse x-id query parameter and warn of any ↵Alex9 days1-1/+14
|\ \ | |/ |/| | | | | | | inconsistency (fix #822)' (#954) from fix-822 into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/954
| * s3 api: parse x-id query parameter and warn of any inconsistency (fix #822)fix-822Alex Auvolat9 days1-1/+14
| |
* | cli: return info of all nodes when doing garage stats -a (fix #814)Alex Auvolat9 days1-1/+6
|/
* db-snapshot: propagate any node snapshot error through RPC callhandle_snapshot_errorsBaptiste Jonglez2025-02-071-1/+5
| | | | | | | | | | In particular, it means that "garage meta snapshot --all" will get an exit code of 1 if any node fails to snapshot. This makes sure that any external tool trying to snapshot nodes (e.g. from cron) will be aware of the failure. Fix #920
* db-snapshot: Fix error reporting when using "garage meta snapshot --all"Baptiste Jonglez2025-02-071-1/+1
| | | | | | | | | | | Snapshot errors on remote nodes were not reported at all. We now get proper error output such as: 0fa0f35be69528ab error: Internal error: DB error: LMDB: No space left on device (os error 28) 88d92e2971d14bae ok Fix #920
* remove async_trait for TableRepairAlex Auvolat2025-02-051-6/+3
|
* remove async_trait used in generic_server.rsAlex Auvolat2025-02-058-21/+3
|
* remove async_trait for traits declared in garage_netAlex Auvolat2025-02-0515-54/+35
|
* build with rust 1.82.0Alex Auvolat2025-02-032-2/+4
|
* nix, ci: build with CraneAlex Auvolat2025-02-032-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes our dependency on cargo2nix, which was causing us some issues. Whereas cargo2nix creates one Nix derivation per crate, Crane uses only two derivations: 1. Build dependencies only 2. Build the final binary This means that during the second step, no caching can be done. For instance, if we do a change in garage_model, we need to recompile all of the Garage crates including those that do not depend on garage_model. On the upside, this allows all of the Garage crates to be built at once using cargo build logic, which is optimized for high parallelism and better pipelining between all of the steps of the build. All in all, this makes most builds faster than cargo2nix. A few other changes have been made to the build scripts and CI: - Unit tests are now run within a Nix derivation. In fact, we have different derivations to run the tests using LMDB and Sqlite as metadata db engines. - For debug builds, most CI steps now run in parallel (with the notable exception of the smoke test that runs after the build, which is inevitable). - We no longer pass the GIT_VERSION argument when building debug builds and running the tests. This means that dev binaries and test binaries don't know the exact version of Garage they are from. That shouldn't be an issue in most cases. - The not-dynamic.sh scripts has been fixed to fail if the file does not exist.
* fix testsAlex Auvolat2025-01-313-2/+4
|
* cargo defs: simplify and fix descriptionsAlex Auvolat2025-01-313-8/+8
|
* use cargo-shear to remove many unused dependencies between cratesAlex Auvolat2025-01-3113-126/+3
|
* split s3/cors.rs into also common/cors.rsAlex Auvolat2025-01-3110-179/+179
|
* fix things upAlex Auvolat2025-01-3134-102/+130
|
* wip: split garage_api into garage_api_{common,s3,k2v,admin}Alex Auvolat2025-01-3150-190/+425
|
* table::insert_many: avoid failure with zero items (fix #915)fix-915Alex Auvolat2025-01-301-0/+4
|
* api: better handling of helper errors to distinguish error codesAlex Auvolat2025-01-2912-29/+97
|
* Merge pull request 's3 api: make x-amz-meta-* headers lowercase (fix #844)' ↵Alex2025-01-272-9/+6
|\ | | | | | | | | | | (#938) from fix-844 into main Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/938
| * s3 api: make x-amz-meta-* headers lowercase (fix #844)fix-844Alex Auvolat2025-01-272-9/+6
| |
* | snapshot: sqlite: use a subdirectory for consistency with LMDBBaptiste Jonglez2025-01-271-1/+4
|/ | | | | | | | | | | | | | | | Currently, taking a snapshot of the metadata database with sqlite creates a sqlite file without extension with the following format: snapshots/2025-01-26T15:29:17Z This makes it hard to understand what kind of data this is, and is not consistent with LMDB: snapshots/2025-01-26T15:29:17Z/data.mdb With this change, we now get a directory with a single db.sqlite file: snapshots/2025-01-26T15:29:17Z/db.sqlite
* db-snapshot: allow to set directory where snapshots are storedBaptiste Jonglez2025-01-272-2/+11
| | | | Fix #926