Commit Graph

2067 Commits (93a19040ce4e5088d78a43f6330388e244a50925)

Author SHA1 Message Date
Walter Wilfinger 93a19040ce Fix imports of multiple dbs in one export file
batchWrite was using the last database and retention policy read from
the input file. Because batchWrite was called only every batchSize lines
or at EOF, databases with fewer than batchWrite points could be imported
into the incorrect database.

This change forces a flush with batchWrite whenever processDML reads a
change in database or retention policy.
2018-02-05 12:18:03 -06:00
Jonathan A. Sternberg 37374b2dc2
Merge pull request #9389 from influxdata/js-changelog-fix
Fix some changelog entries
2018-02-02 19:18:59 -06:00
Jonathan A. Sternberg 5d95348fcd Fix stddev() call to report itself as always returning a float 2018-02-02 12:20:27 -06:00
Jonathan A. Sternberg 157fc0ccc4 Fix some changelog entries
Remove some miscellaneous whitespace at the end of changelog entries and
fix two older entries. One accidentally included an inline html tag and
didn't display. The other was missing a newline between two changelog
entries and so didn't display correctly as separate bullet points.
2018-02-02 11:04:55 -06:00
Joe LeGasse 21a58235fc
Merge branch 'master' into jl-race 2018-01-29 15:52:18 -05:00
Patrick Hemmer 2dc2c53093 fix nil err panic in msgpack httpd WriteResponse 2018-01-23 19:54:00 -05:00
Mark Rushakoff 4b1a35fb93 Fix data races in tcp.Mux and tcp.listener
This fixes two data races around concurrent calls to (*tcp.Mux).Close
and (*tcp.Mux).handleConn, discovered in Enterprise test suites.
2018-01-18 16:10:10 -08:00
Jonathan A. Sternberg 05f83d27ee Update influxql version
Fixes #9290.
2018-01-18 09:50:01 -06:00
Joe LeGasse 425a5e5f17 tsm1: prevent WaitGroup race 2018-01-17 13:08:11 -05:00
Joe LeGasse b3391eaaad update CHANGELOG 2018-01-16 21:32:11 -05:00
Adam 938db68198
Update restore functionality to run in online mode, consume Enterprise backup files. (#9207)
* Live Restore + Enterprise data format compatability

* Extended ImportData to import all DB's if no db name given

* Added a new enterprise data test, and backup command now prints the backup file paths at conclusion

* Added whole-system backup test

* Update to use protobuf in all enterprise data cases

* Update to test to do cross-testing with enterprise version

* incremental enterprise backup format support
2018-01-10 13:59:18 -05:00
hpbieker 35cf21ed43 Added changelog. 2018-01-03 09:50:31 +01:00
Jonathan A. Sternberg da9774fd27
Merge pull request #9184 from influxdata/js-influx-node-id-option
Allow setting the node id in the influx cli program
2018-01-02 14:34:37 -06:00
Jonathan A. Sternberg af23897940 Allow setting the node id in the influx cli program
The string `node <n>` can be used to specify which data node the data
should be retrieved from. This uses the `node_id=X` query parameter that
is supported, but wasn't exposed anywhere in the client library.

We use this feature enough internally when attempting to find
inconsistencies or network errors that it is easier if this is just
supported. Otherwise, I continue having to recompile the CLI program
every time I need to do this.

To clear a previously set node, you can use `node 0` or `node clear`.
2018-01-02 11:15:19 -06:00
Jonathan A. Sternberg ecba19eb27 Prevent a panic when a query simultaneously finishes and is killed at the same time
There is a strange race condition where a query can be killed and finish
at approximately the same time. If this happens, the query gets
retrieved by the killing task, the query gets closed by the normal
processing thread, and then the killing task attempts to kill the query
afterwards. Since the close doesn't mark the query as already killed
(since it's not killed, just merely unused), the killing thread attempts
to close the channel again.

Mark the query as killed whenever it is closed to prevent a double close
from happening. This should never cause the status to be erroneously
reported since the query status is removed from the query table within
the same lock scope.
2018-01-02 11:04:01 -06:00
Stuart Carnie dc15805b7c Update CHANGELOG 2017-12-27 17:27:23 -07:00
Jonathan A. Sternberg 30e35749ba Allow lone boolean literals in a condition expression 2017-12-19 12:08:53 -06:00
Jonathan A. Sternberg 5fcf57a764 Remove extraneous newlines from the log
The newlines were accidentally kept when changing the logger. They are
not necessary and mess up the log output.
2017-12-14 16:41:42 -06:00
David Norton 0ae7fc821d feat #9212: update CHANGELOG.md 2017-12-13 09:29:07 -05:00
Stuart Carnie 44f0147f67 update CHANGELOG 2017-12-11 08:57:37 -07:00
Stuart Carnie beef4e64d9 update CHANGELOG 2017-12-07 19:21:17 -07:00
Adam a0b2195d6b
Pulled in backup-relevant code for review (#9193)
for issue #8879
2017-12-07 11:35:20 -05:00
Jason Wilder 0b929fe669 Update changelog 2017-12-06 13:45:43 -07:00
Mark Rushakoff d8d0d2440a Fix incorrect link in CHANGELOG 2017-11-29 16:25:01 -08:00
Andrew Hare 0f937065c1 Update CHANGELOG 2017-11-29 13:52:04 -07:00
Edd Robinson c2f7f0f430
Merge pull request #8491 from influxdata/er-tsi-restore
Add support for TSI shard streaming and shard size
2017-11-29 15:40:52 +00:00
Andrew Hare d7e328050c
Merge branch 'master' into ah-truncate-shards 2017-11-28 17:25:31 -07:00
Andrew Hare 28ec02a7c1
Merge branch 'master' into amh-8789 2017-11-28 17:05:42 -07:00
Jonathan A. Sternberg db60a83d5a Fix query compilation so multiple nested distinct calls is allowable
When refactoring the query engine, I thought calling
`count(distinct(value))` multiple times was disallowed and so the
refactor made it so that wasn't possible.

It turns out that this pattern is allowed because since the distinct is
nested, it is aggregated anyway and can be combined with other
aggregates.

This removes the erroneously placed restriction.
2017-11-28 11:09:32 -06:00
Edd Robinson 12a2ff7fac Add support for TSI shard streaming and shard size
This commit firstly ensures that a shard's size on disk is accurately
reported when using the tsi1 index, by including the on-disk size of the
tsi1 index in the calculation.

Secondly, this commit add support for shard streaming/copying when using
the tsi1 index. Prior to this, a tsi1 index would not be correctly
restored when streaming shards.
2017-11-28 15:57:02 +00:00
Jonathan A. Sternberg a73c3a1965 Fix race condition in the merge iterator close method
If the close happens when next is being called, it can result in a race
condition where the current iterator gets set to nil after the initial
check.

This also fixes the finalizer so it runs the close method in a goroutine
instead of running it by itself. This is because all finalizers run on
the same goroutine so a close that takes a long time can cause a backup
for all finalizers. This also removes the redundant call to
`runtime.SetFinalizer` from the finalizer itself because a finalizer,
when called, has already cleared itself.
2017-11-27 16:55:41 -06:00
Stuart Carnie c31fa86c34 update CHANGELOG 2017-11-27 13:29:21 -07:00
Jason Wilder 71f5780c8a
Merge branch 'master' into master 2017-11-27 11:24:37 -07:00
Andrew Hare 89589adea5 Fix CLI to allow quoted database names
Change the CLI to support quoted database names in `use` statements.
This also allows for all database names to be specified, including names
that contain spaces.
2017-11-20 16:30:27 -07:00
Jason Wilder 50b6ace75f Fix wait reused while disabling compactions 2017-11-20 14:55:47 -07:00
Jonathan A. Sternberg e6f52a687e
Merge pull request #9123 from influxdata/js-9058-fix-space-required-after-regex-operator
Fix space required after regex operator
2017-11-17 10:54:50 -06:00
wyc c0d184ee93 Influx CLI: More Connection Warnings
If we don't detect a server version, then there's a good chance that
we're not speaking to an InfluxDB server. We should warn the user about
this to make it easier for them to debug.
2017-11-16 11:59:29 -05:00
Jonathan A. Sternberg 5f16934aa7 Fix space required after regex operator
Fixed via influxdata/influxql#4 by @stop-start. Thanks!
2017-11-16 08:45:40 -06:00
Mark Rushakoff 8b345bf5aa Update changelog for 1.4.2 release 2017-11-15 14:49:51 -08:00
Jason Wilder dde2d87ec9 Update changelog
[ci skip]
2017-11-15 09:06:31 -07:00
Mark Rushakoff 711da24562 Update changelog for 1.4.1 2017-11-14 08:15:57 -08:00
Jason Wilder 48e21e6fc8
Merge pull request #9084 from influxdata/jw-delete-time
Handle high cardinality deletes in TSM engine
2017-11-13 14:39:54 -07:00
Jason Wilder a8646b6d4d Update changelog
[ci skip]
2017-11-13 14:33:47 -07:00
e-wave 2123fc3b04 changelog 2017-11-13 18:24:01 +02:00
Jonathan A. Sternberg 0b7c56bcd8 Update the zap logger dependency
The previous sha was taken from a revision on a devel branch that I
thought would continue staying in the tree after it was merged. That
revision was rebased away and the API was changed for the logger.

This updates the usage of the logger and adds a simple package for
constructing the base logger.

The 1.0 version of zap changed the format of the default console logger
so this change moves over to this new logger instead of attempting to
retain backwards compatibility with the old format.
2017-11-10 16:27:16 -06:00
Jason Wilder ed246db55a Fix panic: runtime error: slice bounds out of range
Fixes #8538
2017-11-08 17:00:25 -07:00
Ben Johnson 156f25ac23
Improve SHOW TAG KEYS performance. 2017-11-07 10:59:19 -07:00
Andrew Hare ecb3952fa9 Allow human-readable byte sizes in config
Update support in the `toml` package for parsing human-readble byte sizes.
Supported size suffixes are "k" or "K" for kibibytes, "m" or "M" for
mebibytes, and "g" or "G" for gibibytes. If a size suffix isn't specified
then bytes are assumed.

In the config, `cache-max-memory-size` and `cache-snapshot-memory-size` are
now typed as `toml.Size` and support the new syntax.
2017-11-01 11:09:09 -05:00
Jonathan A. Sternberg 9dc60962c7 Handle utf16 files when reading the configuration file
Windows computers may produce a utf16 file from the command line that
contains a byte-order-mark. Along with handling the utf8
byte-order-mark, this also handles the utf16 for better Windows
compatibility.
2017-10-30 22:48:44 -05:00
Jason Wilder 355d742d4a Update to go 1.9.2 2017-10-30 11:49:47 -06:00