Commit Graph

10351 Commits (5d9eae61b070f56adf9e4dad33a7fd4000669f00)

Author SHA1 Message Date
Jonathan A. Sternberg 5d9eae61b0 Add https-private-key option to httpd config
The HTTPS configuration for the httpd service only had an option to
specify the certificate file and the same file would be used for both
the certificate and private key file (they could be concatenated
together).

This adds an additional option to specify the files differently from
each other while still allowing the previous behavior. If only
`https-certificate` is specified, the httpd service will try to load the
private key from the `https-certificate` file. If a separate
`https-private-key` file is specified, the private key will be loaded
from there instead.

Fixes #1310.
2016-05-18 21:05:57 -04:00
Jonathan A. Sternberg c89005f046 Merge pull request #6634 from influxdata/js-2926-support-bound-parameters
Support bound parameters in the parser
2016-05-18 21:04:58 -04:00
Jonathan A. Sternberg 451a5205ef Support bound parameters in the parser
The parser can be passed a map of keys to literal values to be replaced
into the query. Parameters are preceded by a dollar sign (`$`). If a
parameter key is missing, an error is thrown by the parser.

Fixes #2926.
2016-05-18 20:10:15 -04:00
Jason Wilder 5248e38434 Merge pull request #6668 from influxdata/jw-6611
Fix points already read from being returned more than once
2016-05-18 17:52:14 -06:00
Jason Wilder 7fb7faaaca Fix points already read from being returned more than once
If there were duplicate points in multiple blocks, we would correctly
dedup the points and mark the regions of the blocks we've read.
Unfortunately, we were not excluding the already points as the cursor
moved to points in the later blocks which could cause points to be
return twice incorrectly.

Fixes #6611
2016-05-18 17:21:10 -06:00
Jason Wilder 9f89420b4c Merge pull request #6653 from influxdata/jw-compact-fix
Compaction fixes
2016-05-18 16:10:10 -06:00
joelegasse 05edca32e6 Merge pull request #6667 from influxdata/jl-mux-default
Add DefaultListener to tcp.Mux
2016-05-18 17:59:12 -04:00
Jason Wilder 121195a865 Merge pull request #6665 from influxdata/jw-series-stats
Reload series count stat at startup
2016-05-18 15:58:15 -06:00
Joe LeGasse eada5b721a Add DefaultListener to tcp.Mux 2016-05-18 17:57:26 -04:00
Edd Robinson 09dc48b847 Merge pull request #6664 from influxdata/jw-shard-size
Store shard size on disk statistic
2016-05-18 22:39:12 +01:00
Jason Wilder 209dd005c5 Merge pull request #6627 from influxdata/jw-deadlock
Fix possible deadlock when queries and delete series run concurrently
2016-05-18 15:30:37 -06:00
Jason Wilder f2bcf9d9ab Code review fixes 2016-05-18 15:25:56 -06:00
Jason Wilder d32ad26d27 Fix data not getting reloaded
The optimization to speed up shard loading had the side effect of
skipping adding series to the index that already exist.  The skipping
was in the wrong location and also skipped the shards measurementFields
index which is required in order to query that series in the shard.
2016-05-18 15:25:56 -06:00
Jason Wilder c11af949e9 Remove unnecessary test runs
* tsm1 engine test is no longer needed as it's the default now
* go1.6 build from git is not needed as we build with go1.6.2 released
version now.
2016-05-18 15:25:56 -06:00
Jason Wilder 37d8f005c8 Install go1.6 in circle env 2016-05-18 15:25:56 -06:00
Jason Wilder e859141b75 Speed up tests
Switched the max keys test to write int64 of the same value so RLE
would kick in and the file size will be smaller (84MB vs 3.8MB).

Removed the chunking test which was skipped because the code will
not downsize a block into smaller chunks now.

Skip MaxKeys tests in various environments because it needs to
write too much data to run reliably.
2016-05-18 15:25:56 -06:00
Jason Wilder 37e0dc9368 Update changelog 2016-05-18 15:25:56 -06:00
Jason Wilder eff71cbe23 Rollover to new TSM file when max blocks exceeded
Fixes #6406
2016-05-18 15:25:55 -06:00
Jason Wilder 8fda621d8b Fix memory spike when compacting overwritten points
If a large series contains a point that is overwritten, the compactor
would load the whole series into RAM during a full compaction.  If
the series was large, it could cause very large RAM spikes and OOMs.

The change reworks the compactor to merge blocks more incrementally
similar to the fix done in #6556.

Fixes #6557
2016-05-18 15:25:55 -06:00
Edd Robinson 81dd13eb1d Don't return empty response bodies when gzip encoding requested (#6633)
* golint clean up

* Verb not possible for endpoint

* Don't specify Content-Encoding header for 204s
2016-05-18 22:24:09 +01:00
Jason Wilder f1ab89561a Reload series count stat at startup 2016-05-18 15:21:57 -06:00
Edd Robinson 28ad7c687b Add const for interval 2016-05-18 22:14:59 +01:00
Jason Wilder cbc551f9dc Collect shard size stats 2016-05-18 22:14:59 +01:00
Jonathan A. Sternberg 32fdb022ad Merge pull request #6663 from influxdata/js-6659-panic-on-show-field-keys
Fixing panic in SHOW FIELD KEYS caused by 733a17d
2016-05-18 15:14:24 -04:00
Jonathan A. Sternberg 946968ba23 Fixing panic in SHOW FIELD KEYS caused by 733a17d
The list of field keys in the index may have differed from the field
keys in the actual shard. Fixing `SHOW FIELD KEYS` so it relies only on
the shard rather than the index.

Fixes #6659.
2016-05-18 14:43:50 -04:00
Edd Robinson bac08b7661 Merge pull request #6647 from influxdata/er-fix-map
Fix concurrent map access panic
2016-05-18 18:15:02 +01:00
Edd Robinson f78e67d09c Fix concurrent map access panic 2016-05-18 17:56:50 +01:00
Edd Robinson 887e4ba4d4 Merge pull request #6654 from influxdata/er-http-stat
Add some HTTP statistics
2016-05-18 11:54:00 +01:00
Edd Robinson ce0064cd88 Add stat for currently active write requests 2016-05-17 22:14:19 +01:00
Edd Robinson 36480c6271 Add client and server status code stats 2016-05-17 16:57:20 +01:00
joelegasse 046561181c Merge pull request #6651 from influxdata/jl-close-race
Fix loop variable reuse in database close
2016-05-17 11:38:02 -04:00
Joe LeGasse af432e7d12 Fix loop variable reuse in database close
Fixes #6650
2016-05-17 11:25:39 -04:00
Jonathan A. Sternberg 1dcc9f1e63 Merge pull request #6645 from influxdata/js-6644-panic-stack-trace
Print the query executor's stack trace on a panic to the log
2016-05-17 10:12:20 -04:00
Jonathan A. Sternberg c01cda58e8 Print the query executor's stack trace on a panic to the log
Fixes #6644.
2016-05-17 09:23:55 -04:00
Edd Robinson a1cd346985 Merge pull request #6646 from influxdata/er-licence-deps
Update dependency licences
2016-05-17 13:54:33 +01:00
David Norton c325c825e9 Merge pull request #6648 from influxdata/dn-check-admin
check admin exists instead of user count
2016-05-17 08:36:05 -04:00
David Norton 7ed188185d check admin exists instead of user count
When authenticating a request, check that an admin user exists instead
of checking for len(users) > 0. This prevents getting stuck with no
admin user and being unable to create one.
2016-05-17 08:07:37 -04:00
Edd Robinson 19e781fe24 Merge pull request #6639 from influxdata/er-hh-tidy
Remove references to Hinted Handoff
2016-05-17 12:19:08 +01:00
Edd Robinson 0983139846 Update dependency licences 2016-05-17 12:13:27 +01:00
Jonathan A. Sternberg 42cdaf0365 Merge pull request #6529 from influxdata/js-6519-select-tag-key-specifier
Support cast syntax for selecting a specific type
2016-05-16 12:30:14 -04:00
Jonathan A. Sternberg 23f6a706bb Support cast syntax for selecting a specific type
Casting syntax is done with the PostgreSQL syntax `field1::float` to
specify which type should be used when selecting a field. You can also
do `field1::field` or `tag1::tag` to specify that a field or tag should
be selected.

This makes it possible to select a tag when a field key and a tag key
conflict with each other in a measurement. It also means it's possible
to choose a field with a specific type if multiple shards disagree. If
no types are given, the same ordering for how a type is chosen is used
to determine which type to return.

The FieldDimensions method has been updated to return the data type for
the fields that get returned. The SeriesKeys function has also been
removed since it is no longer needed. SeriesKeys was originally used for
the fill iterator, but then expanded to be used by auxiliary iterators
for determining the channel iterator types. The fill iterator doesn't
need it anymore and the auxiliary types are better served by
FieldDimensions implementing that functionality, so SeriesKeys is no
longer needed.

Fixes #6519.
2016-05-16 12:08:29 -04:00
Edd Robinson 5249bdffd6 Remove references to Hinted Handoff 2016-05-16 16:48:58 +01:00
Jason Wilder ce141eae37 Merge pull request #6637 from influxdata/jw-revert-compact
Revert "Fix memory spike when compacting overwritten points"
2016-05-16 09:46:24 -06:00
Jason Wilder 23fc9ff748 Revert "Fix memory spike when compacting overwritten points"
This reverts commit d99c5e26f6.
2016-05-16 09:30:34 -06:00
Jonathan A. Sternberg 274647b5b2 Merge pull request #6616 from influxdata/js-6607-show-tag-values-with-negative-regex-in-where-clause
SHOW TAG VALUES accepts != and !~ in WHERE clause
2016-05-16 09:22:49 -04:00
Jonathan A. Sternberg a17f3d960a SHOW TAG VALUES accepts != and !~ in WHERE clause
Fixes #6607.
2016-05-16 08:51:09 -04:00
Jonathan A. Sternberg 2ce8fa5f06 Merge pull request #6631 from influxdata/js-6629-query-log-enabled
query-log-enabled not ignored in config anymore
2016-05-16 08:50:25 -04:00
Jonathan A. Sternberg ecacdb7d21 query-log-enabled not ignored in config anymore
Fixes #6629.
2016-05-15 22:36:18 -04:00
Jonathan A. Sternberg 2c9d0fcc04 Merge pull request #6628 from influxdata/js-add-docker-badge
Add docker pull badge to the README
2016-05-15 22:16:54 -04:00
Jonathan A. Sternberg a3b8b1adca Add docker pull badge to the README 2016-05-15 22:05:17 -04:00