Commit Graph

10132 Commits (d13d01b516a0d73591c21642c96312db8e15e422)

Author SHA1 Message Date
Jason Wilder d13d01b516 Allow deleting series by time on a shard 2016-04-27 13:09:53 -06:00
Jason Wilder 4d71d2b01f Add support for deleting cache values using time range 2016-04-27 13:09:52 -06:00
Jason Wilder c154cd4b4a Remove TSMReaderOptions
Not used
2016-04-27 13:09:52 -06:00
Jason Wilder c8bd41c2d8 Remove TSM reader Keys func
It's very inneficient and should never be used.
2016-04-27 13:09:52 -06:00
Jason Wilder 7e06d558d5 Update ContainsValue to handle tombstones 2016-04-27 13:09:52 -06:00
Jason Wilder 97504a552c Support time range tombstones in FileStore/KeyCursor 2016-04-27 13:09:52 -06:00
Jason Wilder 27c2bc3f15 Sepearate IndexWriter from TSMIndex
Allows for future versionion of the TSMIndex as well as removing
a lot of unnecessary code.
2016-04-27 13:09:52 -06:00
Jason Wilder bb82331db7 Move TSMIndex defn to reader.go 2016-04-27 13:09:52 -06:00
Jason Wilder 1ac0b01c5a Remove fileAccessor
No longer used
2016-04-27 13:09:52 -06:00
Jason Wilder a789e819a3 Remove NewTSMReaderWithOptions
There are two TSMIndex implementations, the directIndex and the
indirectIndex.  Originally, we only had the directIndex and later
added the indirectIndex and NewTSMReaderWithOptions in order to
allow both indexes to be used in tests and code.  This has created
a problem since we really only use the directIndex for writing and
always use the indirectIndex for reading.

This changes removes the NewTSMReaderWithOptions func so that it is
no longer possible to create a TSMReader with a directIndex.  This
will allow a lot of the block reading code used by the directIndex
to be removed and simplify maintainence.  It also gives better test
coverage of the code that is actually used by the TSM engine now.
2016-04-27 13:09:52 -06:00
Jason Wilder bc6328d196 Add time range support to tombstone files
This adds support for a time range to tombstone files to allow a subset
of points to be deleted instead of the whole series.  It changes the
tombstone file format to a binary format and maintains backwards compatibility
with the old text format tombstone files.
2016-04-27 13:09:52 -06:00
Edd Robinson 1d9919a0a8 Merge pull request #6477 from influxdata/er-influx-signals
Don't catch SIGQUIT; safer close of Quit channel
2016-04-27 16:48:31 +01:00
Edd Robinson 289fe5bfcb Don't catch SIGQUIT; safer close of Quit channel 2016-04-27 14:38:48 +01:00
Edd Robinson 33f1523890 Merge pull request #6478 from influxdata/er-mention-bot
Mention Bot configuration
2016-04-27 14:21:18 +01:00
Edd Robinson 586faad55e Mention Bot configuration 2016-04-27 13:20:20 +01:00
Todd Persen 662ead753b Merge branch 'jonseymour-usability' 2016-04-26 12:18:52 -07:00
Jon Seymour d2adf3f6f0 improve feedback from admin UI regarding submission of queries.
It can sometimes be difficult to determine if a query submitted by
the UI has been accepted for execution.

In particular, if a query that returns empty results is followed
by a query that takes a long time, then the green success message
from the first query may be misleadingly displayed to the user when,
in fact, the second query is still in progress.

To address this, we always hide the query error and success divs
before the query is submitted. Previously, just the results were
cleared.

Secondly, if the user re-runs a query expecting slightly different results,
it can also be unclear whether the second attempt to execute the command
is simply redisplaying the results of the previous query or the results of the
resubmission, this is particularly true if the queries involved
have short execution times.

To support the ability to distinguish these two cases, we have any attempt
to use the history arrow also clear the results and status divs. This
reduces the ambiguity about whether the next results display is, in fact,
the result of executing a new query.

Signed-off-by: Jon Seymour <jon@wildducktheories.com>
2016-04-26 12:17:05 -07:00
Ben Johnson fd840f242c Merge pull request #6463 from benbjohnson/optimize
Reduce interrupt iterator checks & field access
2016-04-26 13:16:28 -06:00
Ben Johnson 9ea2b505a6 Merge pull request #6470 from benbjohnson/remove-server-influxql
Remove SHOW SERVERS & DROP SERVER
2016-04-26 12:28:31 -06:00
Ben Johnson 1b6524a7bf
reduce interrupt iterator checks
The interrupt iterator currently introduces a non-trivial amount of
overhead to queries by checking for interrupts every 256 points.
This commit adjusts that check to every 5000 points.

There are also several places where nested field access has been
adjusted to minimize field lookups.
2016-04-26 12:16:07 -06:00
Ben Johnson 291dd08cd4
remove SHOW SERVERS & DROP SERVER
This commit removes support for `SHOW SERVERS` and `DROP SERVER`
from the `influxql` package. It also removes extraneous cluster
testing code from `cmd/influxd/run`.

Fixes #6465
2016-04-26 10:28:42 -06:00
Jason Wilder 9a3a52a37c Merge pull request #6361 from PierreF/cluster-pool-hang
Fix cluster/pool release of connection
2016-04-25 14:12:06 -06:00
Pierre Fersing 9f9a3fc98e Fix cluster/pool release of connection 2016-04-25 20:06:51 +02:00
Ben Johnson f608e4cdb0 Merge pull request #6462 from oldmantaiter/measurement-fields-deadlock
Add safer locking to CreateFieldIfNotExists
2016-04-25 11:07:33 -06:00
Tait Clarridge df0e16a92f Add safer unlock to CreateFieldIfNotExists
A deadlock can occur if the field was created while we were waiting for the lock.
2016-04-25 12:44:58 -04:00
Kostas Botsas c39ff515ca Merge pull request #6450 from influxdata/changelog-update-0122
Changelog update for 0.12.2
2016-04-25 19:18:36 +03:00
Kostas Botsas f8885a49ee removed duplicates from v0.13
removed duplicate GH PR's from v0.13 which were merged in v0.12
2016-04-25 15:48:05 +03:00
Jonathan A. Sternberg 40e234539b Merge pull request #6458 from otoolep/fix_cli_version
Make it clear when CLI version is unknown
2016-04-23 09:11:14 -04:00
Philip O Toole ed7229fa2d Make it clear when CLI version is unknown
This mimics the behavior of the database binary.
2016-04-22 21:35:42 -07:00
Edd Robinson 42a073b408 Merge pull request #6453 from influxdata/er-changelog
Attempt to use union merge strategy on CHANGELOG
2016-04-22 18:21:33 +01:00
Edd Robinson 23bb5d95a6 Attempt to use union merge strategy on CHANGELOG 2016-04-22 18:18:20 +01:00
Ben Johnson 9c1fa76f3c Merge pull request #6452 from benbjohnson/simple8b
update dep: simple8b @ b421ab40
2016-04-22 11:05:42 -06:00
Jonathan A. Sternberg 38bd0476ec Merge pull request #6409 from influxdata/js-4675-derivative-order-by-desc
Allow derivative() function to be used with ORDER BY desc
2016-04-22 12:38:19 -04:00
Jonathan A. Sternberg 9b6d5dfd78 Allow derivative() function to be used with ORDER BY desc
The derivative function had an arbitrary limitation that would cause it
to set the value to zero if the previous value was after the next value.
This caused all `ORDER BY desc` queries with `derivative()` to always
return zero values.

Fixes #4675.
2016-04-22 12:20:32 -04:00
Jonathan A. Sternberg b14ae2f41e Merge pull request #6435 from influxdata/js-6429-log-slow-queries
Log slow queries if they pass a configurable threshold
2016-04-22 12:20:06 -04:00
Jonathan A. Sternberg e28d16cfcf Log slow queries if they pass a configurable threshold
Fixes #6429.
2016-04-22 12:04:15 -04:00
Jonathan A. Sternberg b6beec4f57 Merge pull request #6411 from influxdata/js-3558-allow-math-in-where-clause
Pass binary expressions to the underlying query
2016-04-22 12:03:27 -04:00
Jonathan A. Sternberg c77cbb8389 Merge pull request #6375 from influxdata/js-6118-derivative-on-multiple-fields
Remove restrictions on where derivative can be used entirely
2016-04-22 12:02:01 -04:00
Ben Johnson 286072f65a
update dep: simple8b @ b421ab40 2016-04-22 09:46:05 -06:00
Jonathan A. Sternberg d55fb1b16f Merge pull request #6421 from influxdata/js-3883-sanitize-query
Improve query sanitization to prevent a password leak in the logs
2016-04-22 11:40:17 -04:00
Jonathan A. Sternberg d26e4e3650 Pass binary expressions to the underlying query
Binary math inside of a where condition was previously disallowed. Now,
these types of queries are just passed verbatim down to the underlying
query engine which can handle it.

We may want to revisit this when it comes to tags at some point as it
prevents the more efficient filtering of tags that a simple expression
allows, but it allows a query like this to be done:

    SELECT * FROM cpu WHERE value + 2 < 5

So while it can be better, this is a good initial implementation to
provide this functionality. There are very rare situations where a tag
may be used appropriately in one of these circumstances.

Fixes #3558.
2016-04-22 11:30:36 -04:00
Jonathan A. Sternberg 5070f69bb2 Merge pull request #6444 from influxdata/js-config-from-env-var
Allow setting the config path through an environment variable
2016-04-22 11:28:57 -04:00
Jonathan A. Sternberg 62c66b788c Improve query sanitization to prevent a password leak in the logs
Sanitizing is now done through pattern matching rather than parsing the
query and replacing the password in the query. This prevents
accidentally redacting the wrong part of a query and revealing what the
password is through association.

Fixes #3883.
2016-04-22 11:27:09 -04:00
Jonathan A. Sternberg 22a0505559 Remove restrictions on where derivative can be used entirely
This removes the previous restrictions that kept derivative as only
capable of being used in a single field and only at the top level.
This lets users determine how they want to use derivative more freely
and opens up the possibility of also using math between derivatives.

This may open up some problems when it comes to math between derivatives
as timestamps may not match correctly. That is likely a problem related
to any binary math to begin with though and can probably be ignored by
the derivatives. I'm also not sure it makes sense to perform any math
between a derivative and a difference or perform math between a
derivative and a mean.

Fixes #6118.
2016-04-22 11:17:23 -04:00
Jonathan A. Sternberg 9c09023508 Allow setting the config path through an environment variable
The config path previously could only be specified through the command
line options. This made it very difficult to set a default config path
without using any option.

Now the environment variable can be set so the default configuration
path is set to a specific place, but can be overwritten using the
command line option.

The primary purpose of this is so the Docker container can have a
default configuration file, but not have to parse the command line
options to figure out if a different configuration file has been
specified while still allowing the user to only type `influxd` and have
the program start correctly.

This might also help #6392 as it would allow a default configuration
location to be included with the package by setting an environment
variable.

A default search path is also provided now with checking the following
paths for a config file when none is specified:

* `~/.influxdb/influxdb.conf`
* `/etc/influxdb/influxdb.conf`

The config command has also been modified to read this config file
before outputting a sample config.
2016-04-22 09:33:53 -04:00
Edd Robinson d22af706bf Merge pull request #6448 from oiooj/pr-influxdb
fix cli writeColumns output
2016-04-22 14:04:53 +01:00
Kostas Botsas d56ec7ef8a Changelog for 0.12.2
Updated Changelog with details for 0.12.2
2016-04-22 14:21:00 +03:00
kun 82a4b5e7b1 fix cli writeColumns output 2016-04-22 18:25:14 +08:00
Ben Johnson 8c232f311b Merge pull request #6432 from benbjohnson/optimize-float-decoder
Optimize tsm1.FloatDecoder
2016-04-21 10:47:02 -06:00
Jason Wilder c71ee4f9b8 Merge pull request #6436 from influxdata/jw-reportcard
README changes
2016-04-21 10:30:29 -06:00