Commit Graph

23 Commits (d82aa62fff46f4b8670d4a88ff60d7020ff6becf)

Author SHA1 Message Date
Jonathan A. Sternberg 0ae8bebd75
refactor: rewrite imports to include the /v2 suffix for version 2 2020-04-03 12:39:20 -05:00
Pavel Zavora f8a76a5584 fix(cmd/influx/write): assume UTC timezone in dateTime:number type 2020-03-29 19:28:16 +02:00
Pavel Zavora 8140c69ebf chore(cmd/influx/write): allow tags and fields starting with _ 2020-03-27 16:31:34 +01:00
Pavel Zavora bb5e22024c feat(cmd/influx/write): remove linepart annotation, use datatype annotation instead 2020-03-27 13:08:50 +01:00
Pavel Zavora 289b990287 feat(cmd/influx/write): support extra measurement,tag,field,ignored values in datatype annotation 2020-03-27 10:25:47 +01:00
Pavel Zavora 2881fce68d chore(cmd/influx/write): improve error reporting 2020-03-27 08:20:27 +01:00
Pavel Zavora 9e7570a64a chore(cmd/influx/write): add test for line batching 2020-03-27 07:41:38 +01:00
Pavel Zavora d6a7ba024c chore(cmd/influx/write): rename internal timestamp data type to dateTime:number 2020-03-27 07:40:19 +01:00
Pavel Zavora 4253456e8d feat(cmd/write): allow default values also in tag columns 2020-03-25 21:22:01 +01:00
Pavel Zavora a21438be71 feat(cmd/import): warn about unsupported annotations in CSV 2020-03-25 21:17:23 +01:00
Pavel Zavora 1b773b03fc feat(cmd/write): fully support default values in CSV files 2020-03-25 21:17:23 +01:00
Pavel Zavora 58cf663b62 feat(cmd/write): add support for generic dateTime data type 2020-03-25 21:17:23 +01:00
Pavel Zavora bdb0843c93 chore(cmd/write): add test pairs for date-time conversion 2020-03-25 21:17:23 +01:00
Pavel Zavora 54fd3a9076 fix(cmd/write): fix staticcheck issues 2020-03-25 21:17:23 +01:00
Pavel Zavora 8a3feb1bbc feat(cmd/write): add csv format support 2020-03-25 21:17:23 +01:00
David McKay 1b5ae7780b fix(cmd/write): remove shared buffer access that caused race condition on large imports 2020-02-15 00:20:59 +00:00
Mark Rushakoff d73d73c0d4 chore: rename imports from platform to influxdb
I did this with a dumb editor macro, so some comments changed too.

Also rename root package from platform to influxdb.

In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.

Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
Jeff Wendling 9da6fb3410 fix(write): fix close logic to avoid race from read error
In the case that there is a read error, we would close the lines
channel before sending the error into the read error channel. closing
lines then allows the write goroutine to possibly send in a nil error
before read is able to, causing the main function driving both to
return a nil error. Additionally, it is possible for both reads and
writes to race sending errors into their channels, and the main
goroutine will only read from one, causing the other goroutine to leak.

To fix this, we close lines only after we have sent an error into
the channel, we ensure we read from both errors to make sure that
both have exited, and we unify the channels and add a buffer of size
two to the channel. It is possible for write to exit leaving read blocked
forever, but write only exits with a nil error when read has exited, so
this only happens during an actual write error, just like before.

Channels are hard.
2018-12-29 15:30:38 -07:00
Chris Goller 0d7b77d3dd feat(http): add query plan validation 2018-11-02 09:11:57 -05:00
Chris Goller ad50cb1527 refactor(write): reuse timers 2018-10-25 19:13:53 -05:00
Chris Goller 6ce2530003 refactor(write): reuse bytes readers 2018-10-25 19:13:53 -05:00
Chris Goller 7a9f9cc378 test(write): add batcher tests 2018-10-25 19:13:53 -05:00
Chris Goller 9d64d2192b feat(write): add line protocol batch writing 2018-10-25 19:13:53 -05:00