Commit Graph

90 Commits (900e1cce061622de5c4cb019255499182dd6c676)

Author SHA1 Message Date
Andrew Lamb 81810c2faa
fix: rename measurement.txt to measurement.lp for consistency (#122)
* fix: rename measurement.txt to measurement.lp for consistency

* fix: rename the file
2020-06-05 17:28:06 -04:00
Andrew Lamb e0c38d0976
chore: Add test to check for tsm reading errors, update doc example (#117)
* chore: Add a test that decodes the entire tsm index

* fix: update test and change example to not use hard coded len

* fix: comment cleanup

* fix: clippy

* fix: Apply suggestions from code review

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
Co-authored-by: Jake Goulding <jake.goulding@integer32.com>

* fix: fmt/clippy after code review

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
Co-authored-by: Jake Goulding <jake.goulding@integer32.com>
2020-06-05 16:22:56 -04:00
Jake Goulding 68fb580b43
style: Re-enable the elided lifetimes lint and move generated types to their own crate (#119)
* refactor: rename the module containing generated types

The nested `delorean` was confusing anyway, and this will make more
sense when we extract a new crate.

* refactor: Move the generated types to their own crate

This allows us to have more lax warnings in that crate alone, keeping
the main crate more strict.

* style: Re-enable elided lifetimes lint in the main crate
2020-06-05 16:22:27 -04:00
Edd Robinson 413738a264 feat: support org and bucket ID in entries 2020-06-04 14:36:43 +01:00
Andrew Lamb 18b05ce9ef
fix: move test of dstool to its delorean_storage_tool package (#107) 2020-06-02 16:10:30 -04:00
Andrew Lamb fbc74348c6
fix: consistent capitalization and data location (#105) 2020-06-02 08:00:13 -04:00
Andrew Lamb 1a2efdfd71
feat: Add dstool command line tool (#102)
* feat: Add dstool command line tool

* clippy

* Update delorean_storage_tool/src/main.rs

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>

* Update delorean_storage_tool/src/main.rs

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>

* Add in tests + PR comments

* fmt

* build first then run tests

* actually build before test

Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com>
2020-06-02 07:33:43 -04:00
Carol (Nichols || Goulding) 0a02afe016
test: Wait for test server to stop before restarting (#92) 2020-05-26 17:34:54 -04:00
Carol (Nichols || Goulding) e25a4e1e83 feat: Integrate the WAL with delorean 2020-05-11 15:38:47 -04:00
Jake Goulding bff4d2d6d9 refactor: Move temporary directory creation to test helpers 2020-05-11 15:26:00 -04:00
Carol (Nichols || Goulding) 7d568704cd feat: Implement MeasurementFields gRPC request 2020-05-04 15:52:01 -04:00
Carol (Nichols || Goulding) e615607f4a feat: Implement MeasurementTagValues gRPC request 2020-05-04 15:52:01 -04:00
Carol (Nichols || Goulding) 1ab9230654 feat: Implement measurement tag keys request 2020-05-04 15:52:00 -04:00
Carol (Nichols || Goulding) e6e911ce3c feat: Implement the Measurement Names gRPC request 2020-05-04 15:52:00 -04:00
Carol (Nichols || Goulding) e0eb895a14 test: Add more measurements to the e2e test data 2020-05-04 15:52:00 -04:00
Jake Goulding a6682467a7 fix: Use approximate floating point comparisons for slices as well 2020-05-01 13:05:00 -04:00
Carol (Nichols || Goulding) 6dd7c0a3e8 fix: Treat gRPC bucket_id as bucket name because MemDB assigns bucket ID 2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding) 429d0e1851 fix: Change name of the proto package to match proto used by Go
So that `storectl query` requests will work with delorean
2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding) a85f0edfc6 feature: Use the new ID type everywhere 2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding) 0314bc6ba2 fix: Change the default gRPC port to match storectl
8082 appears to be the default here:
b304e751e1/cmd/storectl/query/query.go (L56)
2020-04-13 16:03:23 -04:00
Carol (Nichols || Goulding) 56a2b323be feature: Implement ReadGroup 2020-04-06 10:23:43 -04:00
Carol (Nichols || Goulding) 747585e0b5 test: Make more interesting test data 2020-04-06 09:08:34 -04:00
Carol (Nichols || Goulding) 39dad5de31 fix: Always return long form of _f and _m from gRPC calls 2020-04-03 17:20:00 -04:00
Carol (Nichols || Goulding) a801f19b70 refactor: Extract a method to get sorted tags from ReadBatches 2020-04-03 17:18:05 -04:00
Carol (Nichols || Goulding) 7356bc33ed refactor: Rearrange construction of data
This was a temporary way of writing it to figure out the types, but I
find it easier to see the hierarchy.
2020-04-03 14:38:23 -04:00
Carol (Nichols || Goulding) 7bdea751d2 test: Explicitly create the bucket in the end-to-end test 2020-04-03 09:18:15 -04:00
Carol (Nichols || Goulding) 38e660818e style: Cargo fmt 2020-04-02 16:39:57 -04:00
Paul Dix c83805854d Fix end-to-end test for new rpc.rs behavior 2020-04-02 15:47:43 -04:00
Carol (Nichols || Goulding) d097af781d feature: Implement the get_buckets rpc to get bucket ids in the test 2020-04-02 11:52:39 -04:00
Jake Goulding f77d28367d feature: Respect TEST_DELOREAN_DB_DIR in the end-to-end test 2020-04-02 11:06:38 -04:00
Jake Goulding 97d11633b8 feature: Use a unique directory per end-to-end test run 2020-04-02 11:06:36 -04:00
Jake Goulding d66cc552a6 refactor: Use an Error/Result type alias 2020-04-02 11:04:20 -04:00
Carol (Nichols || Goulding) 54a66c14c8 feature: Implement read filter request 2020-02-26 09:51:02 -05:00
Carol (Nichols || Goulding) 7cac8cc10c feature: Implement tag values request 2020-02-26 09:51:02 -05:00
Carol (Nichols || Goulding) 2a4d2fe52d feature: Implement tag keys request 2020-02-26 09:51:02 -05:00
Jake Goulding c85f4b45ed refactor: use raw strings instead of escape sequences 2020-02-21 09:55:18 -05:00
Carol (Nichols || Goulding) cc0d830fec test: Exercise gRPC in the end-to-end test 2020-02-17 16:37:43 -05:00
Carol (Nichols || Goulding) 5384d0d3b8 refactor: Switch org_id to primarily be u32 in tests
This will make it easier to have one source of truth for the org id
used in the gRPC and regular requests.
2020-02-17 16:37:43 -05:00
Carol (Nichols || Goulding) fdcef79ae3 improvement: Make end-to-end test async
This doesn't matter very much right now, since we're waiting for each
call to be done before asserting, but tonic client methods are async.
2020-02-17 16:37:43 -05:00
Carol (Nichols || Goulding) 9cce1e4882 test: Add an end-to-end test
This test:
- Runs the server in a thread
- Writes some data
- Reads some data
- Shuts down the server
2020-02-13 10:40:03 -05:00