Commit Graph

9826 Commits (a86632912fc9037cc3851820299cb2debb672ceb)

Author SHA1 Message Date
Jonathan A. Sternberg a86632912f Fix the difference test
A recent bugfix to CREATE RETENTION POLICY caused this to fail when
merged. This fixes the test.
2016-03-29 10:03:43 -04:00
Jonathan A. Sternberg 9ddc59aab5 Merge pull request #6105 from influxdata/js-1825-difference-function
Implement the difference function
2016-03-29 09:37:59 -04:00
Jonathan A. Sternberg a9720f926e Implement the difference function
The difference function is implemented very similar to how derivative is
implemented. It is an aggregate function that acts over the entire
aggregate. This function will also have the same problems that
derivative has with getting values from the previous interval or point.
This will be fixed separately as part of #5943.

Fixes #1825.
2016-03-29 09:27:12 -04:00
Jonathan A. Sternberg cb77caf3f2 Merge pull request #6127 from influxdata/js-fix-query-manager-timeout-test
Set the query manager timeout test to a higher value to avoid a false positive
2016-03-29 09:02:58 -04:00
Edd Robinson 6c9875b0a9 Merge pull request #6099 from influxdata/er-create-queries-fix
Correct idempotency for RPs and CQs
2016-03-29 11:57:51 +01:00
Edd Robinson dcb6e318e9 Creating CQ with identical query does not error
Partially fixes #6094.

Prior to this when passing the same query and CQ name in a CREATE
CONTINUOUS QUERY command an error would be returned. This means the
command was not behaving in a similar way to other commands.a

Now when running the command with the same CQ name and query string no
error will be returned. Note, this change does not parse the query, it
simply compares a normalised query string to the existing one on the CQ.
2016-03-29 11:35:04 +01:00
Edd Robinson adffbc2ba0 Fix tests to not clash with retention policy 2016-03-29 11:27:58 +01:00
Edd Robinson 828de361c6 Correct the CREATE RETENTION POLICY error behaviour
Partially addresses #6094.

Previously, when creating a retention policy only the name was
considered when deciding if the policy already existed. This meant that
adding a second policy with the same name but different duration or
replica factor returned the original policy and no error.

This commit fixes that and ensures that name, duration and replica
factor are all considered.
2016-03-29 11:07:26 +01:00
Cory LaNou 98bcad1035 Merge pull request #6125 from influxdata/inconsistent-route-naming
Fix inconsistent route name
2016-03-28 15:57:03 -05:00
Sean Beckett 5a59b6483b Merge pull request #6120 from influxdata/update-pr-template
update PR template to avoid stale InfluxQL spec
2016-03-27 18:22:25 -07:00
Sean Beckett 23570af667 Update PULL_REQUEST_TEMPLATE.md 2016-03-25 15:46:00 -07:00
Jonathan A. Sternberg 2b83939aeb Set the query manager timeout test to a higher value to avoid a false positive 2016-03-25 16:45:38 -04:00
Ross McDonald df080dfb46 Merge pull request #6128 from influxdata/ross-build-updates
Fix naming for statically-compiled packages
2016-03-25 14:59:54 -05:00
Cory LaNou fa05ae038a fix inconsistent route names 2016-03-25 14:10:31 -05:00
Ross McDonald d6caaeea99 Fixes naming for statically-compiled packages. 2016-03-25 13:15:19 -05:00
Ross McDonald 97f55e6930 Merge pull request #6111 from influxdata/ross-build-updates
Build Updates
2016-03-24 17:24:56 -05:00
Ross McDonald eb172ba678 Three improvements to the `build.py` script:
- Improved handling of tar and zip package outputs
- Added support for statically-compiled binary outputs
- Modifyed the nightly version format to be more human-readable
2016-03-24 16:28:39 -05:00
Sean Beckett d2eb123c51 update PR template to avoid stale InfluxQL spec 2016-03-24 14:11:35 -07:00
Cory LaNou 19e2af2abf Merge pull request #6116 from influxdata/extend-http-routes
Extend http routes
2016-03-24 14:25:04 -05:00
Cory LaNou a8e7e681d2 Update CHANGELOG.md 2016-03-24 13:04:07 -05:00
Cory LaNou 2a7abbab1f more external routes magic 2016-03-24 13:03:11 -05:00
Cory LaNou b3b4a3764a allow routes to be added outside the httpd package 2016-03-24 13:03:11 -05:00
Jason Wilder e42e1f887a Merge pull request #6060 from oldmantaiter/add-shard-duration
Add configurable shard duration to retention policies
2016-03-23 22:42:25 -06:00
Tait Clarridge 45b3e61ac7 Add configurable shard duration to retention policies
Allows configuration of shard group duration at database creation, and retention
policy create/alter time.

Query examples:

```
CREATE DATABASE testdb WITH DURATION 90d SHARD DURATION 30m NAME rp_testdb
CREATE RETENTION POLICY rp_testdb2 ON testdb DURATION INF REPLICATION 1 SHARD DURATION 30m
ALTER RETENTION POLICY rp_testdb2 ON testdb SHARD DURATION 1h
```

This can be useful with long duration retention policies with lots of data, where
you can split into smaller shards to relieve memory pressure.
2016-03-24 00:25:49 -04:00
Ben Johnson 5e8e849ebd Merge pull request #6102 from benbjohnson/limit-series
Limit series count in selection
2016-03-23 13:03:02 -06:00
Ben Johnson a6d9930b6f limit series count in selection
This commit adds a configurable limit to the number of series that
can be returned from a `SELECT` statement. The limit is checked
immediately after planning and is determined by the use of iterator
stats.

Fixes #6076
2016-03-23 12:48:48 -06:00
Ben Johnson 45f1c28adb add tsm iterator stats buffer
This commit adds a buffer for stats to be updated without
requiring a mutex lock/unlock on every point. The tradeoff
is that stats are not exactly precise. This works for our
use case because stats are only periodically checked.
2016-03-23 12:23:22 -06:00
Jason Wilder f233a8bac8 Update v0.11.0 release date 2016-03-23 09:35:52 -06:00
Jonathan A. Sternberg d85b7334cd Merge pull request #6081 from influxdata/js-6075-query-time-limit
Support a timeout for running queries in the query manager
2016-03-23 11:32:08 -04:00
Jonathan A. Sternberg 1806d5def7 Merge pull request #5223 from influxdata/js-debian-frontend-dockerfiles
Use DEBIAN_FRONTEND=noninteractive when using apt-get in Dockerfiles
2016-03-23 10:11:37 -04:00
Ross McDonald 682a58a678 Merge pull request #6065 from simnv/influx-service-wait-stop
Wait for a process termination on influxdb restart
2016-03-23 06:05:09 -05:00
Valeriy Simonov 938453b0dc Changelog update 2016-03-23 10:41:52 +05:00
Valeriy Simonov e70d8aaa25 Wait for process termination on restart
Fixing "bind: address already in use" error
2016-03-23 10:37:39 +05:00
Jonathan A. Sternberg 2f853d3a7f Merge pull request #6093 from influxdata/js-fix-bad-aux-iterator-merge
Fix a bad merge that removed ExpandSources from AuxIterators
2016-03-22 17:13:44 -04:00
Jonathan A. Sternberg cabcf4f2ae Merge pull request #6004 from influxdata/js-5728-improper-semicolon-handling
Properly handle semi-colons as part of the main query loop
2016-03-22 16:45:56 -04:00
Jonathan A. Sternberg 114e734ee5 Fix a bad merge that removed ExpandSources from AuxIterators
Regenerated the protobuf file for influxql to use a newer protobuf.
2016-03-22 16:36:22 -04:00
Jonathan A. Sternberg b89edfd71c Fix the code that handles semicolons
This allows multiple semicolons in a row now and also requires that a
semicolon separate commands. The query specification says this is
required, but a boolean error in `ParseQuery` makes one semicolon
optional and multiple semicolons an error.

Fixes #5728.
2016-03-22 15:32:54 -04:00
Jason Wilder 1100e3871b Merge pull request #6091 from brunoqc/patch-2
remove unneeded 'import' in client/README.md
2016-03-22 13:26:58 -06:00
Bruno Bigras 8657961f81 remove unneeded 'import' in client/README.md 2016-03-22 15:10:34 -04:00
Jonathan A. Sternberg 79fe4490c2 Support a timeout for running queries in the query manager
Include an interrupt iterator at the top level to interrupt the fill
iterator if it is producing too many points.

Fixes #6075.
2016-03-22 13:30:40 -04:00
Jonathan A. Sternberg 9620130308 Merge pull request #6019 from influxdata/js-5152-fix-where-with-field-and-tag
Fix where filters when a tag and a field are combined with OR
2016-03-22 13:30:26 -04:00
Jonathan A. Sternberg a35d9602cd Fix where filters when a OR is used and when a tag does not exist
If an OR was used, merging filters between different expressions would
not work correctly. If one of the sides had a set of series ids with a
condition and the other side had no series ids associated with the
expression, all of the series from the side with a condition would have
the condition ignored. Instead of defaulting a non-existant series
filter to true, it should just be false and the evaluation of the one
side that does exist should take care of determining if the series id
should be included or not. The AND condition used false correctly so did
not have to be changed.

If a tag did not exist and `!=` or `!~` were used, it would return false
even though the neither a field or a tag equaled those values. This has
now been modified to correctly return the correct series ids and the
correct condition.

Also fixed a panic that would occur when a tag caused a field access to
become unnecessary. The filter using the field access still got created
and used even though it was unnecessary, resulting in an attempted
access to a non-initialized map.

Fixes #5152 and a bunch of other miscellaneous issues.
2016-03-22 12:19:06 -04:00
Jonathan A. Sternberg 3a7d537ee6 Merge pull request #6028 from influxdata/js-5116-default-no-fill-for-select-into
Modify fill(null) to fill(none) in SELECT INTO queries
2016-03-22 12:13:17 -04:00
Jonathan A. Sternberg 38232ffc17 Merge pull request #6048 from influxdata/js-4306-string-equality-against-a-float
Fix eval when types do not match between the lhs and rhs
2016-03-22 12:12:10 -04:00
Ben Johnson 573dd0f96a Merge pull request #6035 from benbjohnson/query-engine-reduce-alloc
Reduce allocations in query execution
2016-03-22 10:11:14 -06:00
Jonathan A. Sternberg 8ab1a9b513 Merge pull request #6083 from influxdata/js-6079-limit-max-concurrent-queries
Limit the maximum number of concurrent queries
2016-03-22 12:08:36 -04:00
Ben Johnson 6e1c1da25b reduce allocations in query execution
This commit removes some heap objects by converting them from
pointer references to non-pointers or by reusing buffers.
2016-03-22 09:51:39 -06:00
Jason Wilder 7857e07a1e Merge pull request #6062 from influxdata/mr-prune-wal-config
Remove unused WAL configuration variables/fields
2016-03-22 09:20:27 -06:00
Jonathan A. Sternberg a82778c75c Merge pull request #6089 from influxdata/js-6055-order-by-desc-fix
Fix ORDER BY desc so it doesn't skip values
2016-03-22 09:55:29 -04:00
Jonathan A. Sternberg ad96207868 Fix ORDER BY desc so it doesn't skip values
After reading the initial buffer, ORDER BY desc would read the next
block into the buffer and only read the first element. It's because the
code that was copied from the ascending cursor wasn't modified correctly
to set the position to the last element in the buffer.

The buffer size has also been lowered from 1000 to 10 to match with the
ascending cursor for performance with limit queries.

Fixes #6055.
2016-03-22 09:40:11 -04:00