Commit Graph

10950 Commits (777407ad0c3135b9d781a48011e3018414409187)

Author SHA1 Message Date
Jonathan A. Sternberg 964341eb20 Optimize queries that compare a tag value to an empty string
The behavior for querying tag values with an empty string was originally
fixed in #6283, but it also added a performance problem when the
cardinality of the tag was high. Since a call to `Union()` or `Reject()`
would happen for every series key and it would be called N times for N
cardinality, the comparisons against a blank string were unnecessarily
slow with large memory allocations.

This optimizes these queries so it doesn't use those methods anymore.
Those methods are still useful and used when combining AND and OR
clauses, but they aren't useful when finding the series ids for a single
clause. These methods were unnecessary anyway because the series ids for
the tags were unique anyway and didn't have to be merged as a set.
2016-08-31 14:03:23 -05:00
Jonathan A. Sternberg 05ddf85d24 Merge pull request #7245 from influxdata/js-backport-retention-policy-spec
Use defaults from `meta` package for `CREATE DATABASE`
2016-08-30 13:36:20 -05:00
Jonathan A. Sternberg 23f2d50ecb Use defaults from `meta` package for `CREATE DATABASE`
Instead of having the parser set the defaults, the command will set the
defaults so that the constants for that are actually used. This way we
can also identify which things the user provided and which ones we are
filling with default values.

This allows the meta client to be able to make smarter decisions when
determining if the user requested a conflict or if the requested
capabilities match with what is currently available. If you just say
`CREATE DATABASE WITH NAME myrp`, the user doesn't really care what the
duration of the retention policy is and just wants to use the default.
Now, we can use that information to determine if an existing retention
policy would conflict with what the user requested rather than returning
an error if a default value ever gets changed since the meta client
command can communicate intent more easily.
2016-08-30 13:23:49 -05:00
Jonathan A. Sternberg 3a349fd8ae Merge pull request #7241 from influxdata/js-7240-line-protocol-skip-blank-line
Allow blank lines in the line protocol input
2016-08-30 12:36:21 -05:00
Jonathan A. Sternberg 0d63889847 Allow blank lines in the line protocol input 2016-08-30 09:25:55 -05:00
Jason Wilder fa641077ad Merge pull request #7239 from influxdata/jw-changelog
Fixup changelog
2016-08-29 15:29:13 -06:00
Jason Wilder 2d16f8b8d1 Fixup changelog 2016-08-29 15:16:45 -06:00
Nathaniel Cook 888dc8cbd2 Merge pull request #7234 from influxdata/nc-influxql-readme
Update Influxql Readme
2016-08-29 13:09:34 -06:00
Jonathan A. Sternberg f67558c2a7 Merge pull request #7236 from influxdata/js-7220-revert-limit-shard-concurrency
Revert "limit shard concurrency"
2016-08-29 13:41:46 -05:00
Nathaniel Cook 3ab4e9fa1d update InfluxQL readme to reflect current code 2016-08-29 12:33:55 -06:00
Jonathan A. Sternberg 289b3b4f0b Merge pull request #7235 from influxdata/js-remove-unused-field
Remove unused Err field on models.Row
2016-08-29 13:18:19 -05:00
Jonathan A. Sternberg c05c7f6360 Revert "limit shard concurrency"
This reverts commit 6c7d56d4bc.
2016-08-29 12:39:52 -05:00
Jonathan A. Sternberg a2b65f2b86 Remove unused Err field on models.Row 2016-08-29 12:38:29 -05:00
Jason Wilder 3d411371f2 Merge pull request #7233 from influxdata/jw-stats2
Write path stats
2016-08-29 10:15:23 -06:00
Jason Wilder d84cc8956b Merge pull request #7232 from influxdata/jw-stack
Fix runtime: goroutine stack exceeds 1000000000-byte limit
2016-08-29 09:54:20 -06:00
Jason Wilder fa8f982686 Update changelog 2016-08-29 09:46:11 -06:00
Jason Wilder d878d30d18 Fix shard write stats
* Rename *Fail to *Err for consistency with other metrics
* Use index Series count instead of sepaate counter
2016-08-29 09:46:11 -06:00
Jason Wilder e203323776 Add wal write success/error stats 2016-08-29 09:38:48 -06:00
Jason Wilder 83ca8c3867 Decrement cache memory stat when deleting series 2016-08-29 09:38:41 -06:00
Jason Wilder 03326f993f Add cache write success/error stats 2016-08-29 09:38:32 -06:00
Jason Wilder b31bf798f1 Fix runtime: goroutine stack exceeds 1000000000-byte limit
Fixes #7225
2016-08-29 09:26:48 -06:00
Jonathan A. Sternberg 05d1a948d0 Merge pull request #7219 from influxdata/js-7218-alter-retention-policy-parsing-error
Fix alter retention policy when all options are used
2016-08-29 10:03:09 -05:00
Gunnar df7e609c3e Merge pull request #7189 from influxdata/ga-inspect
Add time range options to influx_inspect export
2016-08-26 17:03:54 -07:00
Jonathan A. Sternberg b8a70105aa Fix alter retention policy when all options are used
We added `SHARD DURATION` as an extra option, but forgot to increase the
maximum number of allowable options from 3 to 4. So if 4 options were
used, the last one was ignored. This was commonly `DEFAULT`, but it
could have been any of the options.
2016-08-26 11:25:18 -05:00
Jonathan A. Sternberg 8b234546a8 Merge pull request #7204 from influxdata/1.0
Merge 1.0 branch to master
2016-08-25 15:20:30 -05:00
gunnaraasen 5a7d99cc93 Improve db/rp creation in influx_inspect 2016-08-25 11:53:07 -07:00
Edd Robinson ccc532e48b Merge pull request #7215 from andyfeller/20160825-subsciber-fix
Fixing typo within example configuration file
2016-08-25 19:51:54 +01:00
gunnaraasen d28a0a9b4e Add time range option to influx_inspect 2016-08-25 11:39:54 -07:00
Andy Feller e0b86160a7 Fixing typo within example configuration file 2016-08-25 14:37:32 -04:00
Jonathan A. Sternberg 48d27d3b29 Merge pull request #7212 from influxdata/js-query-engine-negative-timestamps
Support negative timestamps for the query engine
2016-08-25 13:26:08 -05:00
Jonathan A. Sternberg 10029caf2f Support negative timestamps in the query engine
Negative timestamps are now supported. We also now refuse two
nanoseconds that are at the edge of the minimum time window. One of the
nanoseconds we do not accept is because we need MinInt64 to be used for
some internal comparisons in the TSM engine and it was causing an
underflow when we subtracted one from the minimum time. The second is so
we can have one minimum time that signifies the default minimum that
nobody can write to (so we can implicitly rewrite the timestamp on
aggregate queries) but still use the explicit timestamp if it is given
to us by the user. We aren't able to tell the difference between if the
user provided it or if it was implicit without those values being
different.

If the default minimum time is used with an aggregate query, we rewrite
the time to be the epoch for backwards compatibility since we believe
that's more important than supporting that extra nanosecond.
2016-08-25 12:52:41 -05:00
Jonathan A. Sternberg 5130cd703b Update changelog 2016-08-24 13:00:58 -05:00
Ben Johnson a30f9b6c70 Merge pull request #7196 from benbjohnson/mmap-fix
Fix mmap dereferencing
2016-08-24 10:48:28 -06:00
Ben Johnson cc628a1097
Fix mmap dereferencing
Adds a missing dereference call to `Close()` as well as fixes
a tag copy issue.
2016-08-24 10:48:07 -06:00
Edd Robinson 8bb3fcb188 Merge pull request #7203 from influxdata/er-stats
Ensure we don't mutate provided statistics tags
2016-08-24 16:50:36 +01:00
Jonathan A. Sternberg 76f7333537 Merge pull request #7199 from influxdata/js-mode-aggregate-function
add mode() function & tests
2016-08-24 09:23:00 -05:00
Edd Robinson 6cafdbc604 Ensure we don't mutate provided statistics tags 2016-08-24 11:40:13 +01:00
Edd Robinson 3ecc913c88 Merge pull request #7193 from influxdata/2016-08-23-fix-panic-monitor-service
Fix "nil map" panic in statistics collection.
2016-08-24 10:53:50 +01:00
Jonathan A. Sternberg 993ac1ca2e Remove confusing comment and unnecessary continue 2016-08-23 19:43:18 -05:00
Ashish Gaurav 4e17f9bb13 add mode() function & tests 2016-08-23 19:31:41 -05:00
rw fd53330824 gofmt 2016-08-23 11:53:17 -07:00
rw 8d7d89d8ed Fix "nil map" panic in statistics collection. 2016-08-23 11:45:12 -07:00
Edd Robinson a2fcafd5c0 Merge pull request #7187 from influxdata/er-stat-fix
Fix base64 encoding issue in stats
2016-08-23 16:57:41 +01:00
Mark Rushakoff f216123406 Merge pull request #7191 from gam-phon/patch-1
Update issue link to "Remove IF EXISTS/IF NOT ..."
2016-08-23 08:09:41 -07:00
Yaser Alraddadi 0402b3ae22 Update issue link to "Remove IF EXISTS/IF NOT ..." 2016-08-23 15:37:01 +03:00
Jason Wilder a2470c9f94 Update changelog 2016-08-22 14:38:27 -06:00
Edd Robinson 90ff713f21 Fix base64 encoding issue in stats
Fixes #7177.
2016-08-22 15:21:31 +01:00
Jonathan A. Sternberg 9b28f7704f Merge pull request #7171 from influxdata/js-1.0-merge-response-formatter-bugfix
Merge branch '1.0'
2016-08-17 19:13:09 -05:00
Ben Johnson 65536676a4 Merge pull request #7138 from benbjohnson/optimize-shard-open
Reduce memory allocations in index
2016-08-17 15:27:33 -06:00
Jonathan A. Sternberg 5e468fac0b Merge branch '1.0' into master 2016-08-17 13:27:02 -05:00