Commit Graph

6836 Commits (68b82f30301c8629094b36d50f47b9b6b5cf5c36)

Author SHA1 Message Date
Jason Wilder 68b82f3030 Fix regex queries regression
ValidateGroupBy was returning an error if a tag does not exist
but it appears that function was supposed to be validating that
a field name was not used as a group by field.

Fixes #3326
2015-08-10 15:02:29 -06:00
Philip O'Toole 95b63ff2a5 Merge pull request #3613 from influxdb/fix_int_math
Force all values to float64 for math
2015-08-10 13:25:01 -07:00
Gunnar e0261a4111 Merge pull request #3587 from influxdb/ga-admin-error-handling
Better query error handling for admin UI
2015-08-10 13:18:59 -07:00
Gunnar 8ef9eb435b Merge pull request #3591 from influxdb/ga-clean-dump
Remove dump from client and handler
2015-08-10 13:18:47 -07:00
Philip O'Toole c42697f929 Update CHANGELOG 2015-08-10 13:13:19 -07:00
Philip O'Toole a122e709ea Add system-level test for math 2015-08-10 13:13:04 -07:00
Philip O'Toole 18589e20e6 Force all values to Float64 for math
Any literal values in a math query e.g. the '2' in 'value * 2' are
stored as float64, so all other values must be cast to this type. This
does mean that precision may be lost if the integer values are greater
than 2^53.
2015-08-10 13:13:04 -07:00
Jason Wilder 460e174229 Merge pull request #3612 from influxdb/jw-3583
Fix panic when parsing value in scientific notation with trailing i
2015-08-10 14:09:43 -06:00
Jason Wilder bc81a4283f Fix panic when parsing value in scientific notation with trailing i
Fixes #3583
2015-08-10 13:46:53 -06:00
Jason Wilder 2b33302d07 Merge pull request #3610 from influxdb/jw-derivative
Fix panic when running derivative on non-numeric values
2015-08-10 13:04:21 -06:00
Jason Wilder 03dfec31db Add integer derivative tests
There was one for aggregates that was misnamed.  Added one for
raw derviative.
2015-08-10 12:58:36 -06:00
Jason Wilder d4ce2f9048 Fix panic when running derivative on non-numeric values
Fixes #3401
2015-08-10 12:45:34 -06:00
Daniel Morsing 41733f6817 Merge pull request #3521 from DanielMorsing/sharderrcheck
check error when opening shard DBs.
2015-08-10 11:28:20 -07:00
Daniel Morsing 65ea56ae2c check error when opening shard DBs.
This should catch the case where someone messed up the permisssions
for a database that they moved from one machine to another.
2015-08-10 09:31:22 -07:00
Jason Wilder 9ece632791 Merge pull request #3592 from influxdb/jw-docker
Initial docker support
2015-08-09 17:04:58 -06:00
Jason Wilder 11f4ba82aa Add env override config test 2015-08-09 16:14:10 -06:00
Jason Wilder 775dadadf5 Use INFLUXDB as env var prefix 2015-08-09 16:06:38 -06:00
Paul Dix 596db019a0 Merge pull request #3593 from benbjohnson/multi-cursor
Add tsdb.MultiCursor
2015-08-08 10:03:16 -04:00
Ben Johnson 1ebcb10b03 Add tsdb.MultiCursor
This commit adds a cursor that wraps multiple `tsdb.Cursor` objects
and streams them out as one cursor. The multi-cursor automatically
dedupes keys by using the first cursor specified in the argument
list.
2015-08-07 17:02:29 -06:00
Jason Wilder 43804596dc Fix grammar 2015-08-07 14:51:58 -06:00
Jason Wilder b01eb34920 Update changelog 2015-08-07 14:27:38 -06:00
Jason Wilder 6f9c18fe95 Allow overriding of configuration parameters using environment variables
This allows all config variable to be set via environment variables using
a similar naming convention for the toml config.  For example, to change the
HTTP API port using the config, you would set:

[http]
  bind-address = ":8086"

To change it with an environment variable, you would use:

  HTTP_BIND_ADDRESS=":8086" influxd

The section name is used as the env variable prefix and the config key
name is the suffix.  The only change to the config name is that "-" should
be replaced with "_" to avoid shell interpretation issues.

This makes it much easier to configure docker instances within a docker container
or adhoc instances at the command-line.

For slice config sections like graphite, you can currently only override the first
entry since the default config only has 1 entry.  To do that use, GRAPHITE_0 as the
prefix.  You cannot currently add new entries like GRAPHITE_1.  A future PR might
address this issue.

The environment variable values should be the same as the config values.

The order that configuration values are applied is as follows:
* Default config
* Config file
* Environment variables
* Command-line arguments

Fixes #3246
2015-08-07 14:27:38 -06:00
Jason Wilder 15ab23c17e Add instructions for building a minimal docker image 2015-08-07 14:27:33 -06:00
Jason Wilder 87376a1c35 Allow -hostname to also override remote addr port
When starting a influxd in a docker container, the processess needs to know
the hosts address and port in order to create its NodeInfo correctly.  -hostname
previously only allowed us to change the hostname and the port would always be 8088
which may not be correctly if running multiple containers on the same host.
2015-08-07 14:03:08 -06:00
Jason Wilder c90ffff855 Fallback to HOME env var to determine home dir
When building a static binary without cgo, user.Current() uses cgo
and always fails.  Fallback to to HOME env variable if it exists.
2015-08-07 14:03:08 -06:00
gunnaraasen 7dc7389e96 Remove dump from client and handler 2015-08-07 11:56:30 -07:00
gunnaraasen a60bb9ced6 Better query error handling for admin UI 2015-08-06 21:45:40 -07:00
Paul Dix bd512762db Merge pull request #3586 from benbjohnson/bz1-fix
Ffix bz1 quickcheck bugs
2015-08-06 17:28:58 -04:00
Ben Johnson 394e9635cf fix bz1 quickcheck bugs
This commit fixes issues found from using a more complex `testing/quick`
implementation of the `WriteIndex()` test. The newer test inserts
multiple sets of random data that's confined to a smaller random space
so there's more chance of overlapping data.

The fixes were primarily around inserting old data or inserting the same
timestamp multiple times for a single write. The block splitting was not
working correctly before and the sorting and deduping was not handled
correctly.
2015-08-06 15:12:48 -06:00
Cory LaNou 0c4c5b20cb Merge pull request #3585 from influxdb/non-existent-field
Additional test coverage for non-existent fields
2015-08-06 15:12:48 -05:00
Jason Wilder fc7c223850 Merge pull request #3481 from influxdb/jw-hh
Fix panic in hinted handoff processor
2015-08-06 14:10:35 -06:00
Jason Wilder 398ffabab7 Fix panic in hinted handoff processor
A short write has occurred and we do not have enough bytes to determine
the size of the payload.  This is corrupted record that we should drop.
Instead of panicing, log the error and advance the queue since the error
at this location is unreoverable currently.

Fixes #3436
2015-08-06 14:06:41 -06:00
Cory LaNou 9ac99f24da changelog 2015-08-06 15:02:46 -05:00
Cory LaNou 2d26c2c9fe Additional test coverage for non-existent fields 2015-08-06 15:01:34 -05:00
Cory LaNou e4674d4a19 Merge pull request #3564 from influxdb/fix-alias
Fix alias, maintain column sort order
2015-08-06 14:51:59 -05:00
Cory LaNou fdaa809f9a fix some tests, add some tests, fix some test comments 2015-08-06 14:01:29 -05:00
Cory LaNou a8412d455e changelog 2015-08-06 14:01:29 -05:00
Cory LaNou b19a8f3968 Fix alias, maintain column sort order 2015-08-06 14:01:03 -05:00
Cory LaNou f6b2af2cc3 Merge pull request #3580 from influxdb/enforce-single-select-wildcard
Do not allow wildcards with fields in select statements
2015-08-06 14:00:37 -05:00
Cory LaNou f4697ebca7 changelog 2015-08-06 12:16:33 -05:00
Cory LaNou 101a580e02 do not allow wildcards with fields in select statements 2015-08-06 12:15:08 -05:00
Cory LaNou 9e099762b2 Merge pull request #3579 from influxdb/config-non-pointer
Revert breaking change to `client.NewClient` function
2015-08-06 12:10:27 -05:00
Cory LaNou 9df04ec5c2 changelog 2015-08-06 11:48:06 -05:00
Cory LaNou 765509bd68 revert breaking change to `client.NewClient` function 2015-08-06 11:46:25 -05:00
David Norton f02f65a934 circle CI back to go1.4.2 2015-08-06 12:44:37 -04:00
David Norton 8f0f289e4f have circle CI use go1.5rc1 from source 2015-08-06 12:42:16 -04:00
David Norton d739f2e024 switch circle CI to go 1.5rc1 2015-08-06 12:37:12 -04:00
Cory LaNou 08f84a2925 Merge pull request #3502 from influxdb/import
Importer for 0.8.9 data via the CLI
2015-08-06 10:46:28 -05:00
Jason Wilder 872541b288 Merge pull request #3565 from influxdb/jw-3545
Fix parsing string fields with newlines
2015-08-06 09:32:24 -06:00
Jason Wilder cb7f0b8228 Fix parsing string fields with newlines
Newlines in a string field would cause the parser to return
the line prematurely causing "unbalanced quotes" errors.  This
makes the line scanning aware of quote fields so that the whole
line is returned.

Fixes #3545
2015-08-06 09:28:01 -06:00