Commit Graph

12295 Commits (e91d38b11799d71aa34b52117a820969b3b173b1)

Author SHA1 Message Date
Edd Robinson 7374e4e8a4 Merge pull request #8550 from influxdata/er-8548-panic
Allow panic recovery mechanism to be disabled
2017-07-05 22:09:09 +01:00
Edd Robinson 36bdd832c0 Merge pull request #8562 from influxdata/er-8559-compaction-stuck
Ensure tmp files cleaned up when compaction disabled
2017-07-05 21:52:12 +01:00
Edd Robinson 101af89987 Update CHANGELOG 2017-07-05 16:35:41 +01:00
Ryan Betts ef4d55382b Remove react library from dependencies licences
The react library was removed when the admin gui was removed;
however, a reference to the library lingered in the third
party license file.

closes influxdata/plutonium#1426
2017-07-05 10:16:02 -04:00
Edd Robinson 0748d28986 Ensure tmp files cleaned up when compaction disabled 2017-07-04 20:04:23 +01:00
Jonathan A. Sternberg 7d06250c1c Make certain parser function public so they can be used by outside packages 2017-07-03 13:10:00 -05:00
Jonathan A. Sternberg 96516fe6d9 Remove seldom used parseTokenMaybe method 2017-07-02 23:33:19 -05:00
Jonathan A. Sternberg 3e2501cbd1 Introduce a new dynamic language mechanism
The language is now defined in a way similar to many HTTP routers with
the left prefix being placed into a parse tree and then eventually
invoking a function to parse the arguments.

This allows dynamically adding additional components to the parse tree
for either query language extensions or enterprise.
2017-07-02 20:05:46 -05:00
Seif Lotfy 4cb01c1768 change beta constants for the hll cardinality bias estimator 2017-06-30 07:47:16 -07:00
Edd Robinson 12248b7233 Allow panic recovery to be disabled
This commit adds a new environment variable INFLUXDB_PANIC_CRASH, which
when set to a truthy value, e.g., true, TRUE, 1, will prevent the server
from recovering from a panic.

Recover currently occurs in two places: the HTTP handler and the
QueryExecutor. INFLUXDB_PANIC_CRASH will control both.

Further, this commit adds _internal stats that will monitor the
occurrence of panics all the time (regardless of if INFLUXDB_PANIC_CRASH
has been set to true or not).

The recovered panic frequency can be inspected with the following
queries:

SELECT "recoveredPanics" FROM "_internal"."monitor"."httpd";
SELECT "recoveredPanics" FROM "_internal"."monitor"."queryExecutor";
2017-06-29 19:44:25 +01:00
Ben Johnson 8550fabf89 Merge pull request #8547 from benbjohnson/8500-inmem-defer-unlock
Defer unlock all write locks in inmem index.
2017-06-29 10:25:05 -06:00
Ben Johnson 9e64813db8
Defer unlock all write locks in inmem index.
Currently two write locks in `inmem` are obtained and then
manually unlocked at function exit points. However, we have
reports that the `inmem` index is hanging on a write lock and
cannot track the issue down to anything else besides a lock
that could have been left unlocked because of a panic.

This commit changes the two locks to always defer their unlocks
to prevent these hangs.
2017-06-29 10:23:13 -06:00
Mark Rushakoff e3918e0f91 Merge pull request #8543 from influxdata/mr-godep-sys
Add golang.org/x/sys to Godeps
2017-06-29 07:19:36 -07:00
Mark Rushakoff 69221ec9fe Add golang.org/x/sys to Godeps
This dependency appears to only be used when building for Solaris (mmap
dependency). It looks like this wasn't caught earlier due to gdm using
the current build tags to determine which files to process when saving
dependencies.
2017-06-28 14:20:09 -07:00
Ben Johnson 2f11347089 Merge pull request #8539 from benbjohnson/8513-tsi-fix-key-with-spaces
Fix TSI issue with spaces in tag values.
2017-06-28 13:05:51 -06:00
Ben Johnson f9dc61928a
Fix TSI issue with spaces in tag values. 2017-06-28 11:39:48 -06:00
Edd Robinson 87975c7b2b Merge pull request #8132 from influxdata/er-db-privs
Ensure privileges can't be set on non-existent DB
2017-06-27 13:12:00 +01:00
Jonathan A. Sternberg 5f8761a78f Merge pull request #8013 from Alienero/master
Remove the repeat code
2017-06-26 10:40:09 -05:00
Edd Robinson e1a5ee4ede Ensure privileges can't be set on non-existent DB 2017-06-26 14:15:52 +01:00
Adam e014dd012d Merge pull request #8523 from influxdata/8426_master
8426 add a config option so collectd can generate multiple fields, not multiple measurements
2017-06-23 17:04:03 -04:00
Adam b12ee4e6ee 8426: updated code based on pull-request feedback 2017-06-23 14:59:01 -04:00
Adam e4b4cfb7a1 8426 Updated collectd section in default config file 2017-06-23 09:25:36 -04:00
Adam 6ac3e0ab98 8426 Updated changelog to more clearly describe the new feature 2017-06-23 09:22:14 -04:00
Adam 5352b5865c 8426 Updated README to describe the new configuration option 2017-06-23 09:16:39 -04:00
Adam 3ca8b90f6c 8426: Refactored config to a string to make it more intuitive to the user, and to make setting a default easier 2017-06-23 09:12:52 -04:00
Adam 0fb2de16ee 8426 updated changelog 2017-06-22 18:56:38 -04:00
Adam 766702f9bd CORE-8426: finished feature update, tests demonstrate behavior. If config is set, it will group collectd stats into a single measurement as they appear in types.db 2017-06-22 18:54:16 -04:00
Jason Wilder 88e3bad3d9 Merge pull request #8518 from influxdata/jw-meta-deadlock
Fix possible deadlocks in inmem index
2017-06-21 12:35:51 -06:00
Jason Wilder 1e3848c180 Merge pull request #8514 from influxdata/jw-solaris
Fix building on solaris/illumos
2017-06-21 12:34:15 -06:00
Jason Wilder 5512c97dac Merge pull request #8515 from influxdata/jw-subscriber
Append subscribers service after it's open
2017-06-21 12:32:52 -06:00
Jason Wilder 9bd703d597 Fix possible deadlocks in inmem index 2017-06-21 12:07:40 -06:00
Jason Wilder ba8649a6d5 Merge pull request #8503 from eheydrick/backup-docs
Add a timezone component to the example backup command to make it RFC3339 compliant
2017-06-21 09:40:05 -06:00
Jason Wilder 72eeacaed4 Append subscribers service after it's open
The Points channel is nil until after the subscriber service is opened.
If it is append before it's opened, the PointsWriter holds onto the
old reference.
2017-06-21 09:28:59 -06:00
Jason Wilder 12c7063566 Update changelog 2017-06-21 09:20:39 -06:00
Ben Johnson 27a27c0735 Merge pull request #8507 from benbjohnson/influx-inspect-tsi-doc
Add dumptsi command to help command.
2017-06-21 09:17:39 -06:00
Jason Wilder cf6d4b6e71 Fix building on solaris/illumos 2017-06-21 09:16:45 -06:00
Jason Wilder 0eb8849c77 Merge pull request #8496 from lrita/optimize-point-split
optimize point split, which reduce unnecessary allocate
2017-06-20 13:07:22 -06:00
Seif Lotfy 643b2eb30c Switch to LogLog-Beta Cardinality estimation
The new algorithm uses only one formula and needs no additional bias corrections for the entire range of cardinalities,
therefore, it is more efficient and simpler to implement. Our simulations show that the accuracy provided by the new
algorithm is as good as or better than the accuracy provided by either of HyperLogLog or HyperLogLog++. The sparse
representation was kept in to provide better low cardinality accuracy. However the linear counting and range estimations
are replaced.
2017-06-20 15:25:01 +02:00
Ben Johnson 431b947149
Add dumptsi command to help command. 2017-06-19 09:49:59 -06:00
Eric Heydrick 810c183963 Add a timezone component to the example backup command to make it
RFC3339 compliant
2017-06-16 15:43:33 -07:00
lrita 72fcf6283e optimize point split, which reduce unnecessary allocate 2017-06-15 16:28:49 +08:00
Matthew McGinn 4159fd693e break out backup logging into 2 loggers, one for Stdout and one for Stderr 2017-06-14 15:20:58 -04:00
Stuart Carnie 0b4528b26d Merge pull request #8471 from influxdata/sgc-8188
CQ statistics written to monitor database, addresses #8188
2017-06-14 09:43:15 +08:00
Stuart Carnie 932edd90b2 Merge branch 'master' into sgc-8188 2017-06-14 10:55:06 +10:00
Stuart Carnie 3657dbc256 update CHANGELOG with key names 2017-06-14 10:37:04 +10:00
Jason Wilder 206fd857c3 Merge pull request #8481 from influxdata/jw-subscriber
Decouple Subscriber from PointsWriter
2017-06-13 15:55:43 -06:00
Jason Wilder 0717c18426 Merge pull request #8487 from influxdata/jw-8483
Fix panic in ForEachMeasurementTagKey
2017-06-13 12:53:45 -06:00
Jason Wilder 71579fcbe9 Remove direct Subscriber dependency from PointsWriter 2017-06-13 12:51:02 -06:00
Jason Wilder 77afe50f7e Fix panic in ForEachMeasurementTagKey
If a shard was closed, ForEachMeasurementTagKey and TagKeyCardinality
would panic because the engine was nil.
2017-06-13 12:04:32 -06:00
Jonathan A. Sternberg e2c1da05e4 Merge pull request #8480 from influxdata/js-stats-interval
Change the default stats interval to 1 second instead of 10 seconds
2017-06-13 12:08:23 -05:00