Commit Graph

11026 Commits (933fd8e8fe68d5cd368ac4af1ba3cf6b783d8fbd)

Author SHA1 Message Date
Jonathan A. Sternberg 46508cb8c9 Fix engine tags in stats 2016-09-09 17:16:53 -05:00
Jonathan A. Sternberg 56b1e56ee9 Merge pull request #7277 from influxdata/js-7272-include-memstats-in-debug-vars
Report cmdline and memstats in /debug/vars
2016-09-09 15:41:20 -05:00
Jonathan A. Sternberg ab4bca8495 Report cmdline and memstats in /debug/vars
When we refactored expvar, the cmdline and memstats sections were not
readded to the output. This adds it back if they can be found inside of
`expvar`.

It also stops trying to sort the output of the statistics so they get
returned faster. JSON doesn't need them to be sorted and it causes
enough latency problems that sorting them hurts performance.
2016-09-09 14:32:43 -05:00
Jonathan A. Sternberg 337dcb6bdb Merge pull request #7276 from influxdata/js-7270-unable-to-perform-time-math
Implement time math for lazy time literals
2016-09-09 14:31:56 -05:00
Jonathan A. Sternberg 4326da0820 Implement time math for lazy time literals
When attempting to reduce the WHERE clause, the time literals had not
been converted from string literals yet. This adds the functionality to
have it handle the same time math when the time literal is still a
string literal.
2016-09-09 13:34:56 -05:00
Jonathan A. Sternberg cbff7117cb Merge pull request #7274 from influxdata/js-backport-config-file-fix
Fixing typo within example configuration file
2016-09-09 10:33:59 -05:00
Andy Feller 28f702667e Fixing typo within example configuration file 2016-09-09 09:57:13 -05:00
Jason Wilder 0521c2a03e Merge pull request #7266 from influxdata/jw-merge-10
Merge 1.0 to master
2016-09-08 09:09:59 -06:00
Jason Wilder 95682faec2 Merge branch '1.0' into jw-merge-10 2016-09-08 09:00:51 -06:00
Paul Dix c02611f68b Update CHANGELOG for 1.0 release! 2016-09-08 10:36:27 -04:00
Jason Wilder 37992377a5 Merge pull request #7265 from influxdata/jw-changelog
Update 1.0.0 release date
2016-09-07 12:07:56 -06:00
Jason Wilder df61117848 Update 1.0.0 release date 2016-09-07 11:54:20 -06:00
Jason Wilder 867eb28db7 Merge pull request #7258 from influxdata/jw-full-compactions
Fix continuous full compactions
2016-09-06 11:08:33 -06:00
Edd Robinson be41e41cae Merge pull request #7254 from influxdata/er-field-error
Ensure ErrFieldTypeConflict value returned
2016-09-05 14:09:19 +01:00
Edd Robinson 5023419adc Ensure ErrFieldTypeConflict value returned 2016-09-05 13:34:35 +01:00
Jason Wilder 1a35c0a3fc Fix neverending full compactions
The full compaction planner could return a plan that only included
one generation.  If this happened, a full compaction would run on that
generation producing just one generation again.  The planner would then
repeat the plan.

This could happen if there were two generations that were both over
the max TSM file size and the second one happened to be in level 3 or
lower.

When this situation occurs, one cpu is pegged running a full compaction
continuously and the disks become very busy basically rewriting the
same files over and over again.  This can eventually cause disk and CPU
saturation if it occurs with more than one shard.

Fixes #7074
2016-09-03 17:35:14 -06:00
Jonathan A. Sternberg 04c59b8941 Fix the dollar sign so it properly handles reserved keywords
The dollar sign would sometimes be accepted as whitespace if it was
immediately followed by a reserved keyword or an invalid character. It
now reads these properly as a bound parameter rather than ignoring the
dollar sign.
2016-09-02 15:32:46 -05:00
Jonathan A. Sternberg c6763fc0ae Merge pull request #7155 from influxdata/js-4461-todo-change-time-boundaries
Add TODO to change time boundaries for v2
2016-09-01 10:19:53 -05:00
Jonathan A. Sternberg 4ff0b10210 Merge pull request #7139 from influxdata/js-7137-show-tag-values-string-method
Properly output the SHOW TAG VALUES command so it can be reparsed
2016-09-01 10:19:19 -05:00
Jason Wilder a6f6fda415 Fix DeleteSeries when multiple fields exists
The logic for determining whether a series key was already in the
the set of TSM series was too restrictive.  It allowed only the first
field of a series to be added leaving all the remaing fields.
2016-08-31 20:53:10 -06:00
Jason Wilder c3fb8b8ef8 Merge pull request #7249 from influxdata/jw-engine-delete
Fix DeleteSeries when multiple fields exists
2016-08-31 20:48:14 -06:00
Jason Wilder 190537a557 Fix DeleteSeries when multiple fields exists
The logic for determining whether a series key was already in the
the set of TSM series was too restrictive.  It allowed only the first
field of a series to be added leaving all the remaing fields.
2016-08-31 20:35:35 -06:00
Jonathan A. Sternberg 7d243c31b3 Merge pull request #7248 from influxdata/js-merge-1.0-branch
Merge branch '1.0'
2016-08-31 21:32:50 -05:00
Jonathan A. Sternberg dc2527ce86 Merge branch '1.0' 2016-08-31 14:45:57 -05:00
Jonathan A. Sternberg 1187f53251 Merge pull request #7246 from influxdata/js-7243-optimize-queries-with-no-tag
Optimize queries that compare a tag value to an empty string
2016-08-31 14:34:12 -05:00
Jonathan A. Sternberg 5d899505dc Switch to `ioft/i386-ubuntu:14.04` image for 32bit testing
The `32bit/ubuntu:14.04` image seems to have been pulled by the owner. A
very recent commit to their repository recommends switching to
`ioft/i386-ubuntu:14.04` as the new 'official' image.
2016-08-31 14:03:44 -05:00
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