aboutsummaryrefslogtreecommitdiff
path: root/src/block
Commit message (Collapse)AuthorAgeFilesLines
* Bring back the counted tree hack for Sled (with caveat)Alex Auvolat2022-06-072-12/+17
| | | | caveat: it's not only for sled
* Fix clippy lintAlex Auvolat2022-06-061-1/+1
|
* Fix more .unwrap()'sAlex Auvolat2022-06-061-2/+6
|
* fixAlex Auvolat2022-06-061-1/+1
|
* add commentAlex Auvolat2022-06-061-0/+9
|
* Improve things in block manager & correctly propagate .len() errorsAlex Auvolat2022-06-061-18/+36
|
* Table updated trigger now happens in transaction, this is waaaay better!Alex Auvolat2022-06-062-32/+39
|
* Safe choice: revert "Update rmp-serde"Alex Auvolat2022-06-061-1/+1
| | | | This reverts commit 16e0a655d0d01e3871aee81a0a9660102d6df74e.
* Safe choice: return Vec<u8> and not some fancy zero-copy typeAlex Auvolat2022-06-061-8/+4
|
* Start LMDB adapter, with fixed semanticsAlex Auvolat2022-06-031-3/+3
|
* Update rmp-serdeAlex Auvolat2022-06-031-1/+1
|
* small fixesAlex Auvolat2022-06-031-3/+1
|
* 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-031-13/+6
|
* Fix most clippy lintsAlex Auvolat2022-06-031-2/+4
|
* Change value type to be a dyn thingAlex Auvolat2022-06-031-1/+1
|
* Sqlite iter with unsafe codeAlex Auvolat2022-06-021-3/+11
|
* Adapt Garage to use new DB abstractionAlex Auvolat2022-06-024-39/+55
|
* First implementation of K2V (#293)Alex2022-05-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **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>
* Bring maximum exponential backoff time down from 16h to 1hAlex Auvolat2022-04-071-1/+5
|
* Add blocks in errored state to `garage stats`Alex Auvolat2022-03-281-0/+5
|
* Add lots of comments on how the resync queue worksAlex Auvolat2022-03-231-5/+96
| | | | (I don't really want to change/refactor that code though)
* Make background tranquility a configurable parameterAlex Auvolat2022-03-232-10/+9
|
* Move block RC code to separate `rc.rs`Alex Auvolat2022-03-233-136/+175
|
* Move DataBlock out of manager.rsAlex Auvolat2022-03-233-78/+86
|
* Move block manager to separate moduleAlex Auvolat2022-03-234-0/+1237