Commit Graph

11960 Commits (a4a902e3f2519721f36f2ce7e2d26d736d5e3a8f)

Author SHA1 Message Date
Jason Wilder 1a4b1b3109 Fix delete time fields creating unparseable points
If a field was named time was written and was subsequently dropped,
it could leave a trailing comma in the series key causing it to fail
to be parseable in other parts of the code.
2017-04-04 16:37:51 -06:00
Jason Wilder abaf42fbab Merge pull request #8251 from influxdata/jw-time-delete
Fix delete time fields creating unparseable points
2017-04-04 18:37:00 -04:00
Jason Wilder ca55fff12c Fix delete time fields creating unparseable points
If a field was named time was written and was subsequently dropped,
it could leave a trailing comma in the series key causing it to fail
to be parseable in other parts of the code.
2017-04-04 16:19:11 -06:00
Ben Johnson a403f7ec6d Merge pull request #7618 from influxdata/tsi
TSI1
2017-04-04 13:22:24 -06:00
Ben Johnson 9c97cd8601
Merge remote-tracking branch 'upstream/master' into tsi 2017-04-04 12:46:09 -06:00
Ben Johnson 0d74497abe
Reset rhh map elements to reuse allocations. 2017-04-04 11:57:37 -06:00
Jason Wilder 0aa345f440 Merge pull request #8205 from influxdata/jw-merge-123
Merge 1.2.3 to master
2017-04-04 13:31:42 -04:00
Ben Johnson 6ff27c95e5
Fix tsi assertions. 2017-04-04 11:29:21 -06:00
Ben Johnson dbc10559c4 Merge pull request #8247 from benbjohnson/tsi-series-block-partitioning
TSI Series Block Partitioning
2017-04-04 11:15:10 -06:00
Jason Wilder 5fa8073fc2 Merge branch '1.2' into jw-merge-123 2017-04-04 11:12:06 -06:00
Jason Wilder 014c8a6c27 Merge pull request #8249 from influxdata/jw-fs-close
Fix file store not close all TSM files
2017-04-04 13:06:31 -04:00
Jason Wilder 84cbee227a Fix file store not close all TSM files
Regression added via #8192
2017-04-04 10:58:51 -06:00
Jonathan A. Sternberg 4236aa2e82 Merge pull request #8220 from influxdata/js-1.2-query-engine-backports
Backporting two query engine fixes for 1.2.3
2017-04-04 11:52:19 -05:00
Edd Robinson 081810c455 Update license of dependencies 2017-04-04 17:26:51 +01:00
Ben Johnson 95d4016ff2
Merge branch 'tsi' of https://github.com/influxdata/influxdb into tsi-series-block-partitioning 2017-04-04 10:14:03 -06:00
Jason Wilder ec7eea2a0f Skip tests on appveyor that we skip w/ -race 2017-04-04 09:47:59 -06:00
Ben Johnson bf49b176f5
Partition tsi1 series index. 2017-04-04 09:46:04 -06:00
Jason Wilder 41166e0403 Add index-version to config sample 2017-04-04 09:22:53 -06:00
Jason Wilder 793635dbd7 Skip TSI cardinality tests on appveyor 2017-04-04 09:19:43 -06:00
Jason Wilder 4ac70efa48 Merge pull request #8245 from influxdata/jw-tsi-appveyor
Skip TestCache_Deduplicate_Concurrent on windows
2017-04-04 11:04:22 -04:00
Jason Wilder 4f850b5cff Skip TestCache_Deduplicate_Concurrent on windows 2017-04-04 08:48:55 -06:00
Jonathan A. Sternberg b1caafe82f Ensure the input for certain functions in the query engine are ordered
The following functions require ordered input but were not guaranteed to
received ordered input:

* `distinct()`
* `sample()`
* `holt_winters()`
* `holt_winters_with_fit()`
* `derivative()`
* `non_negative_derivative()`
* `difference()`
* `moving_average()`
* `elapsed()`
* `cumulative_sum()`
* `top()`
* `bottom()`

These function calls have now been modified to request that their input
be ordered by the query engine. This will prevent the improper output
that could have been caused by multiple series being merged together or
multiple shards being merged together potentially incorrectly when no
time grouping was specified.

Two additional functions were already correct to begin with (so there
are no bugs with these two, but I'm including their names for
completeness).

* `median()`
* `percentile()`
2017-04-04 09:20:43 -05:00
Jonathan A. Sternberg 3c0d1c1bb5 Fix a regression when math was used with selectors
If there were multiple selectors and math, the query engine would
mistakenly think it was the only selector in the query and would not
match their timestamps.

Fixed the query engine to pass whether the selector should be treated as
a selector so queries like `max(value) * 1, min(value) * 1` will match
the timestamps of the result.
2017-04-04 09:20:43 -05:00
Ryan Betts df0ea87de9 Merge pull request #8232 from influxdata/timhallinflux-patch-2-1
Changelog addition for #8231
2017-04-04 09:57:43 -04:00
Ryan Betts 4b1977673c Merge branch 'master' into timhallinflux-patch-2-1 2017-04-04 09:57:19 -04:00
Ryan Betts 39b98aaa5f Merge pull request #8239 from influxdata/er-1.2-user-perf-bp
Reduce cost of admin user check
2017-04-04 09:34:34 -04:00
Ryan Betts 3032a57e86 Merge pull request #8231 from influxdata/timhallinflux-patch-2
Fix spelling mistake in HTTP section of config -- shared-sercret
2017-04-04 09:33:28 -04:00
Cory LaNou 4dc9873f36 Merge pull request #8191 from influxdata/cjl-8190-redact-passwords-cli
redact passwords before saving history in cli
2017-04-04 07:35:00 -05:00
Jason Wilder 386e769d7d Merge pull request #8241 from influxdata/jw-tsi
Merge master to tsi
2017-04-03 15:01:04 -04:00
Jason Wilder 7ac3c9a26f Remove unused cardinality func 2017-04-03 11:24:55 -06:00
Jason Wilder fcdc3c5c21 Remove commented out code in meta 2017-04-03 11:22:59 -06:00
Jason Wilder 8da84e6144 Merge branch 'master' into tsi 2017-04-03 11:21:02 -06:00
Cory LaNou bc0759d0fc redact passwords before saving history in cli 2017-04-03 11:20:14 -05:00
Jason Wilder 566d842179 Merge pull request #8204 from influxdata/jw-fs-walk-keys
Speed up drops/deletes and startup
2017-04-03 12:06:16 -04:00
Cory LaNou 7a6243eb58 Merge pull request #8122 from influxdata/cjl-influx-suppress-headers
suppress headers in output for influx when they are the same
2017-04-03 10:07:48 -05:00
Jason Wilder 68f73e64d1 Lazily sort Measurement.SeriesIDs
Removing series while trying to maintain the sorted series list
does not perform well when removing many series.  This causes
drop DB, RP, series, to be very slow in some cases.

Instead, lazily create a sorted series list when first requested and
invalidate it when dropping series.
2017-04-03 08:57:53 -06:00
Jason Wilder 32c4d43952 Speed up drop measurement
This reworks drop measurement to use a sorted list of series keys
instead of creating an intermediate map.  It remove allocations
and some extra garbage that is created during drop measurement.
2017-04-03 08:57:53 -06:00
Jason Wilder a78da51b7c Use buffered writer when writing tombstones
When deleting many series, the many small writes flood the disks
and consume a lot of CPU time.
2017-04-03 08:57:52 -06:00
Jason Wilder 6232d5e56d Remove defer allocations in TSMReader 2017-04-03 08:57:52 -06:00
Jason Wilder 920c8396c6 Use sorted merge in FileStore.WalkKeys
WalkKeys serially walked each TSM file and invoked fn for each key.
Caller needed to handle duplicate calls to fn with the same key
because the same key could exist in multiple TSM files.  The serial
execution was also slower.

Since the series keys are already sorted, we can iterate over all
files in parallel and skip duplicates using a sorted merge.  This
fixes the duplicate invocation issue as well as speeds up walking
all keys.

This can significant improve startup performance when many TSM files
exists that may not have been fully compacted.  This also has benefits
for deletes (measurements/series) since duplicates are removed saving
extra allocations and work.  This may also allow for the optimize
compaction to be removed provided startup times are fast enough.
2017-04-03 08:57:52 -06:00
Edd Robinson 57b8993e7b Reduce cost of admin user check
This commits adds a caching mechanism to the Data object, such that
when large numbers of users exist in the system, the cost of determining
if there is at least one admin user will be low.

To ensure that previously marshalled Data objects contain the correct
cached admin user value, we exhaustively determine if there is an admin
user present whenever we unmarshal a Data object.
2017-04-03 12:06:44 +01:00
Karl b22783f127 Update CHANGELOG 2017-04-02 18:33:09 -04:00
Karl 10b7f86368 Make services/subscriber golintable 2017-04-03 18:32:36 -04:00
Karl 08b3dbcbc7 Make services/udp golintable 2017-04-03 18:32:36 -04:00
Karl 616224695a Make services/httpd golintable 2017-04-03 18:32:36 -04:00
Karl 4171d6a843 Make services/admin golintable 2017-04-03 18:32:36 -04:00
Jonathan A. Sternberg 15e594fc09 Merge pull request #8163 from Tomcat-Engineering/influxql-bitwise-operators
Influxql bitwise operators
2017-03-31 16:09:02 -05:00
Tom Young d2fd3f50aa Add bitwise AND, OR and XOR operators to InfluxQL. 2017-03-31 21:02:02 +01:00
Jonathan A. Sternberg 211e7ea65d Merge pull request #8234 from influxdata/js-8230-fix-window-computation-overflow
Prevent overflowing or underflowing during window computation
2017-03-31 11:09:30 -05:00
Jonathan A. Sternberg 9052824be9 Merge pull request #8235 from zhexuany/non_negative_difference
introduce a new function non_negative_difference
2017-03-31 10:29:11 -05:00