aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove useless clones in sqliteAlex Auvolat2022-06-061-4/+4
|
* Fix clippy lintAlex Auvolat2022-06-061-1/+1
|
* Add inline marker on a bunch of db functionsAlex Auvolat2022-06-062-1/+24
|
* in db convert: map size up to 1TB on 64-bit systemsAlex Auvolat2022-06-061-1/+9
|
* Fix more .unwrap()'sAlex Auvolat2022-06-063-13/+28
|
* fixAlex Auvolat2022-06-061-1/+1
|
* add commentAlex Auvolat2022-06-061-0/+9
|
* Improve things in block manager & correctly propagate .len() errorsAlex Auvolat2022-06-064-40/+70
|
* Table updated trigger now happens in transaction, this is waaaay better!Alex Auvolat2022-06-069-110/+178
|
* Fix clippyAlex Auvolat2022-06-062-11/+9
|
* Simplify lmdb adapter (one less indirection)Alex Auvolat2022-06-061-27/+6
|
* WhoopsAlex Auvolat2022-06-062-2/+2
|
* Small syntax changesAlex Auvolat2022-06-066-32/+18
|
* Safe choice: revert "Update rmp-serde"Alex Auvolat2022-06-0616-20/+22
| | | | This reverts commit 16e0a655d0d01e3871aee81a0a9660102d6df74e.
* Safe choice: return Vec<u8> and not some fancy zero-copy typeAlex Auvolat2022-06-069-205/+49
|
* Fix more sqlite deadlocksAlex Auvolat2022-06-062-74/+79
|
* fixesAlex Auvolat2022-06-065-12/+32
|
* Integrate LMDB with restAlex Auvolat2022-06-034-3/+58
|
* Implement iterator for LMDBAlex Auvolat2022-06-031-8/+98
|
* LMDB: use Heed wrapper (much more complete)Alex Auvolat2022-06-033-39/+33
|
* Start LMDB adapter, with fixed semanticsAlex Auvolat2022-06-0311-85/+372
|
* Update rmp-serdeAlex Auvolat2022-06-0316-22/+20
|
* small fixesAlex Auvolat2022-06-032-6/+3
|
* whoopsAlex Auvolat2022-06-032-2/+17
|
* Fix block repair to not deadlock with sqliteAlex Auvolat2022-06-031-0/+8
|
* fix clipy lintAlex Auvolat2022-06-031-5/+4
|
* Slightly prettier codeAlex Auvolat2022-06-035-78/+42
|
* Garage works on sqlite, but it's a hackAlex Auvolat2022-06-037-34/+118
|
* Conversion utilityAlex Auvolat2022-06-035-78/+130
|
* Fix most clippy lintsAlex Auvolat2022-06-038-85/+90
|
* Change value type to be a dyn thingAlex Auvolat2022-06-0310-45/+165
|
* Drop laterAlex Auvolat2022-06-032-14/+16
|
* Just refactor a bitAlex Auvolat2022-06-021-71/+45
|
* Horrible implementation of range for sqliteAlex Auvolat2022-06-021-2/+92
|
* Sqlite iter with unsafe codeAlex Auvolat2022-06-027-60/+162
|
* Add back SendAlex Auvolat2022-06-021-1/+1
|
* Begin sqlite adapterAlex Auvolat2022-06-025-102/+394
|
* Use Cell instead of ArcSwapAlex Auvolat2022-06-023-42/+27
|
* Complete sled abstractionAlex Auvolat2022-06-022-17/+133
|
* Do not put sled in garage's cargo.tomlAlex Auvolat2022-06-023-4/+6
|
* Adapt Garage to use new DB abstractionAlex Auvolat2022-06-0225-210/+351
|
* Implement iter() and range() on dbAlex Auvolat2022-06-023-15/+98
|
* First iteration of a generic DB layerAlex Auvolat2022-06-025-0/+379
|
* Fix Content-Type headers for {admin,k2v} errors and admin responsesfix/admin-api-content-typeAlex Auvolat2022-05-258-43/+30
| | | | Fix #315
* K2V client improvements (#307)v0.7.2Alex2022-05-244-4/+61
| | | | | | | | | | | - [x] Better distinguish error types - [x] Parse error messages received from server - [x] Remove `src/` folder layer, we don't have that for other crates Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/307 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* First version of admin API (#298)Alex2022-05-2460-857/+2551
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Spec:** - [x] Start writing - [x] Specify all layout endpoints - [x] Specify all endpoints for operations on keys - [x] Specify all endpoints for operations on key/bucket permissions - [x] Specify all endpoints for operations on buckets - [x] Specify all endpoints for operations on bucket aliases View rendered spec at <https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/admin-api/doc/drafts/admin-api.md> **Code:** - [x] Refactor code for admin api to use common api code that was created for K2V **General endpoints:** - [x] Metrics - [x] GetClusterStatus - [x] ConnectClusterNodes - [x] GetClusterLayout - [x] UpdateClusterLayout - [x] ApplyClusterLayout - [x] RevertClusterLayout **Key-related endpoints:** - [x] ListKeys - [x] CreateKey - [x] ImportKey - [x] GetKeyInfo - [x] UpdateKey - [x] DeleteKey **Bucket-related endpoints:** - [x] ListBuckets - [x] CreateBucket - [x] GetBucketInfo - [x] DeleteBucket - [x] PutBucketWebsite - [x] DeleteBucketWebsite **Operations on key/bucket permissions:** - [x] BucketAllowKey - [x] BucketDenyKey **Operations on bucket aliases:** - [x] GlobalAliasBucket - [x] GlobalUnaliasBucket - [x] LocalAliasBucket - [x] LocalUnaliasBucket **And also:** - [x] Separate error type for the admin API (this PR includes a quite big refactoring of error handling) - [x] Add management of website access - [ ] Check that nothing is missing wrt what can be done using the CLI - [ ] Improve formatting of the spec - [x] Make sure everyone is cool with the API design Fix #231 Fix #295 Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/298 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>
* Add a K2V client library and CLI (#303)trinity-1686a2022-05-1810-29/+1138
| | | | | | | | | lib.rs could use getting split in modules, but I'm not sure how exactly Co-authored-by: trinity-1686a <trinity@deuxfleurs.fr> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/303 Co-authored-by: trinity-1686a <trinity.pointard@gmail.com> Co-committed-by: trinity-1686a <trinity.pointard@gmail.com>
* K2V: Fix `end` parameter and add tests (fix #305)fix-k2v-305Alex Auvolat2022-05-172-2/+93
|
* Make background runner terminate correctlyAlex Auvolat2022-05-171-15/+22
|
* First implementation of K2V (#293)Alex2022-05-1078-1141/+5520
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Specification:** View spec at [this URL](https://git.deuxfleurs.fr/Deuxfleurs/garage/src/branch/k2v/doc/drafts/k2v-spec.md) - [x] Specify the structure of K2V triples - [x] Specify the DVVS format used for causality detection - [x] Specify the K2V index (just a counter of number of values per partition key) - [x] Specify single-item endpoints: ReadItem, InsertItem, DeleteItem - [x] Specify index endpoint: ReadIndex - [x] Specify multi-item endpoints: InsertBatch, ReadBatch, DeleteBatch - [x] Move to JSON objects instead of tuples - [x] Specify endpoints for polling for updates on single values (PollItem) **Implementation:** - [x] Table for K2V items, causal contexts - [x] Indexing mechanism and table for K2V index - [x] Make API handlers a bit more generic - [x] K2V API endpoint - [x] K2V API router - [x] ReadItem - [x] InsertItem - [x] DeleteItem - [x] PollItem - [x] ReadIndex - [x] InsertBatch - [x] ReadBatch - [x] DeleteBatch **Testing:** - [x] Just a simple Python script that does some requests to check visually that things are going right (does not contain parsing of results or assertions on returned values) - [x] Actual tests: - [x] Adapt testing framework - [x] Simple test with InsertItem + ReadItem - [x] Test with several Insert/Read/DeleteItem + ReadIndex - [x] Test all combinations of return formats for ReadItem - [x] Test with ReadBatch, InsertBatch, DeleteBatch - [x] Test with PollItem - [x] Test error codes - [ ] Fix most broken stuff - [x] test PollItem broken randomly - [x] when invalid causality tokens are given, errors should be 4xx not 5xx **Improvements:** - [x] Descending range queries - [x] Specify - [x] Implement - [x] Add test - [x] Batch updates to index counter - [x] Put K2V behind `k2v` feature flag Co-authored-by: Alex Auvolat <alex@adnab.me> Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/293 Co-authored-by: Alex <alex@adnab.me> Co-committed-by: Alex <alex@adnab.me>