Commit Graph

8045 Commits (04531e77dd1f57188b1a4045fb8cd713b265496a)

Author SHA1 Message Date
Edd Robinson 138c54b1a9 refactor: return option to reference 2020-04-22 12:18:51 +01:00
Edd Robinson 3a9f8aeeb8 docs: specify endianness 2020-04-21 17:31:59 +01:00
Edd Robinson 79506f3d3b refactor: use u16 for summary counts 2020-04-21 17:25:07 +01:00
Jake Goulding 9960dc33a5
Merge pull request #73 from influxdata/cn-negative-numbers
fix: Support negative values in the line protocol parser
2020-04-17 14:25:37 -04:00
Jake Goulding d31bcd2c0e fix: Support negative timestamp values
Also add proper errors for out-of-range values.
2020-04-17 10:32:58 -04:00
Carol (Nichols || Goulding) 4aae16066b fix: Support negative integer and floating-point field values
Also add proper errors for out-of-range values.
2020-04-17 10:32:55 -04:00
Carol (Nichols || Goulding) fbba16ab5b
Merge pull request #69 from influxdata/cn-storectl-bench-take-2
feature: Set up a benchmarking script that uses inch and storectl query
2020-04-13 16:45:26 -04:00
Carol (Nichols || Goulding) 40f8104e58 fix: Correct reference of RocksDB to MemDB; rest of comment still applies 2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding) fb8f736e54 refactor: Encode that Id cannot be 0 by using NonZeroU64 2020-04-13 16:40:38 -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) aecb390fcd feature: Add a create bucket HTTP api
For convenience when using cURL; easier to generate requests than using
gRPC.
2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding) d21ffaaf38 fix: Delorean needs some sort of query right now 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) d9342026bc feature: Hook up benchmarking with storectl 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) 7be1d3437e feature: Add an ID type that matches the Go code
16 character hexadecimal strings to u64s. All zeroes are invalid.
2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding) 27bb803ad3 fix: Return HTTP No Content on successful write
The `inch` tool expects status code 204 instead of 200, so actually send
no content instead of empty JSON.
2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding) 4a0e2cddb9 test: Ensure the parser supports lines with a field but no time 2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding) 9296eb4802 feature: If a line has no time, use the current time 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
Jake Goulding 3484a872eb
Merge pull request #71 from influxdata/compatibility
fix: Increase compatibility with the Go line protocol parser
2020-04-13 11:07:19 -04:00
Jake Goulding d28d7440de fix: Disallow elements that end with a backslash 2020-04-13 09:46:55 -04:00
Jake Goulding 8dfe58ca25 feat: Allow parsing line protocol without a provided timestamp 2020-04-13 09:46:02 -04:00
Jake Goulding c29a2b725a fix: Require at least one field in a field set 2020-04-13 09:41:05 -04:00
Jake Goulding d7416da962 fix: Do not allow a raw newline in the middle of measurement / tag_set / field_key 2020-04-13 09:41:05 -04:00
Jake Goulding 261528aeab test: Ensure that we allow newline literals as unknown escapes 2020-04-13 09:41:05 -04:00
Jake Goulding aff4906a72 fix: Allow multiple whitespace characters between line protocol elements 2020-04-13 09:41:05 -04:00
Jake Goulding 9b9ddc8508 test: ensure that blank and commented lines are ignored 2020-04-13 09:41:04 -04:00
Jake Goulding 91bbfe454e fix: Remove usage of str::lines as input can contain escaped newlines 2020-04-13 09:41:04 -04:00
Jake Goulding 20badac237
Merge pull request #70 from influxdata/minor-clippy
style: Use Vec::new in closures instead of vec!
2020-04-10 16:37:58 -04:00
Jake Goulding 5900111b01 style: Use Vec::new in closures instead of vec! 2020-04-10 15:01:05 -04:00
Jake Goulding 55ca9bc6b0 fix: DRY up repeated varint writing 2020-04-10 11:07:54 -04:00
Jake Goulding 3e268c00c5 fix: shorten summary add methods 2020-04-10 11:07:54 -04:00
Jake Goulding 48f5744f5a fix: remove manual checks when building new block summaries 2020-04-10 11:07:54 -04:00
Jake Goulding 3fc9c0047d fix: use stack-allocated array instead of a Vec 2020-04-10 10:16:29 -04:00
Jake Goulding 16be0b1922 fix: Use std instead of core 2020-04-08 17:03:05 -04:00
Jake Goulding 27520b9951 doc: correct typo 2020-04-08 16:41:04 -04:00
Jake Goulding 56d4d7e301 doc: use initial indentation in code fences 2020-04-08 16:39:17 -04:00
Jake Goulding 8a9f768f71 fix: Remove unneeded match and include basic error information 2020-04-08 16:32:00 -04:00
Carol (Nichols || Goulding) 8c323b84be
Merge pull request #59 from influxdata/escaping
feat: Support escaping values in the line protocol parser
2020-04-08 14:46:38 -04:00
Jake Goulding 29279d393d perf: Avoid string allocation when series is in the correct format
This increases the performance from 58.194 MiB/s to 126.68 MiB/s
2020-04-08 14:41:42 -04:00
Jake Goulding 93231c64e0 perf: Use a SmallVec for escaped strings and sets of tags and values
This increases the performance from 56.531 MiB/s to 58.194 MiB/s.
2020-04-08 14:41:42 -04:00
Jake Goulding 4aa3afb930 perf: Add a benchmark for the line parser 2020-04-08 14:41:17 -04:00
Jake Goulding 6fdd8b1935 refactor: Extract a method to generate the series base name 2020-04-08 14:41:17 -04:00
Jake Goulding 0c7a4a5f81 feat: Handle escaping in the tag key, tag value, and field key 2020-04-08 14:41:17 -04:00
Jake Goulding 8156e24255 feat: Handle escaping in the measurement name 2020-04-08 14:41:17 -04:00
Jake Goulding 1615aec46a refactor: Use preceded combinator 2020-04-08 14:41:17 -04:00
Carol (Nichols || Goulding) 8635076471 fix: Use write_all to ensure entire buffer is processed
write doesn't guarantee the whole buffer gets written and returns the
number of bytes it was able to write; whereas what's desired is
everything gets written and the number of bytes is the total of what
we're asking to write.
2020-04-08 11:18:17 -04:00
Carol (Nichols || Goulding) 2879b6cad7 refactor: Remove some now-unneeded type annotations 2020-04-08 10:55:57 -04:00
Carol (Nichols || Goulding) 051836ee4d fix: Remove vec allocation where an inline slice will do 2020-04-08 10:33:54 -04:00