Commit Graph

9808 Commits (19e2af2abf3939b8bdd423cccc9438eb36dedc3e)

Author SHA1 Message Date
Joe LeGasse 288ac64e9d updated changelog 2016-03-14 16:49:06 -04:00
Joe LeGasse 24bcf46213 Update number scanning edge cases
This should fix #5965, and other issues that result from submitting
malformed numbers with points
2016-03-14 16:48:39 -04:00
Jonathan A. Sternberg b5d8fb5b2d Merge pull request #6005 from influxdata/js-5973-binary-expr-with-nil-points
Make binary expressions with either point being nil return a nil point
2016-03-14 16:32:28 -04:00
Ben Johnson f692621ef5 allow querying of system-like series
Internal system series start with an underscore prefix but
restricting this prevents users who already use an underscore
prefix in their series names.

Fixes #5870
2016-03-14 13:50:52 -06:00
Jason Wilder 3fd40d48a1 Merge pull request #6006 from influxdata/jw-deadlock
Fix deadlock when running backup
2016-03-14 13:36:45 -06:00
Jason Wilder 667ada3906 Merge pull request #5996 from influxdata/jw-dup-block
Fix skipping blocks at query time when overlaps exist
2016-03-14 13:36:27 -06:00
Jason Wilder 9984cd5d6d Fix skipping blocks at query time when overlaps exist
Depending on how data is written across TSM files, it was possible
to skip over some blocks at query time making it looks like data was missing.
2016-03-14 13:11:11 -06:00
Jason Wilder 348c468ea2 Update changelog 2016-03-14 12:38:02 -06:00
Jason Wilder 000459e350 Fix deadlock when running backup
A deadlock occurs under write load if a backup is run in between the
time when a snapshot compactions has snapshotted the cache and successfully
written it to disk.  The issus is that the second snapshot call will block
on the commit lock while it is holding the engine write lock.  This causes
all writes to block as well as prevents the currently runnign snapshot
compaction from completing because it needs to acquire a read-lock.

This PR removes the commit lock and just returns an error if a snapshot is
in progress to all any locks being held to be released.  The caller can determine
whether to retry or giveup.
2016-03-14 12:36:48 -06:00
Nathaniel Cook 9cbe213620 Merge pull request #5997 from influxdata/nc-stress
Kapacitor fixes for stress
2016-03-14 12:29:35 -06:00
Jonathan A. Sternberg 94916082c9 Make binary expressions with either point being nil return a nil point
This also fixes integer to float and float/integer to boolean binary
expressions to correctly work with nil points at all.

Related to #5973.
2016-03-14 13:27:59 -04:00
Edd Robinson 207bafae8a Create a Point from a models.Point 2016-03-14 16:59:06 +00:00
Cory LaNou 1d2c1faa94 address PR feedback 2016-03-14 16:55:54 +00:00
Ben Johnson ea37ed98e5 CHANGELOG 2016-03-14 16:55:54 +00:00
Cory LaNou d024ca2552 modify WritePoints function signature for p products 2016-03-14 16:55:54 +00:00
Cory LaNou e2e231310e make work with p-meta 2016-03-14 16:55:54 +00:00
Cory LaNou 43e345cf4d fix error in write 2016-03-14 16:55:54 +00:00
Cory LaNou cd84f26c34 remove startup check for monitoring 2016-03-14 16:55:54 +00:00
Cory LaNou 27cfaa4b7a in memory meta, single node configs, etc. 2016-03-14 16:55:54 +00:00
Ben Johnson e96185f993 add support for remote expansion of regex
This commit moves the `tsdb.Store.ExpandSources()` function onto
the `influxql.IteratorCreator` and provides support for issuing
source expansion across a cluster.
2016-03-14 16:55:53 +00:00
joelegasse 5182b59ee4 Merge pull request #6003 from influxdata/jl-http-prealloc
pre-allocate a buffer for HTTP writes
2016-03-14 12:24:24 -04:00
Jonathan A. Sternberg 3f68bd12ee Merge pull request #5979 from influxdata/js-5974-aux-iterator-close-panic
Fix aux iterators to respect early closing
2016-03-14 12:03:50 -04:00
Joe LeGasse 3f880c6f9c pre-allocate a buffer for HTTP writes 2016-03-14 11:32:50 -04:00
Jonathan A. Sternberg 0042866002 Teach the AuxIterator how to background
Now the AuxIterator will know when it is backgrounded so that it can
stop reading from the primary iterator when all of the child iterators
have been closed.
2016-03-14 11:12:02 -04:00
Jonathan A. Sternberg 16f4c4fd70 Merge pull request #5990 from influxdata/js-5973-match-iterators-for-math-expressions
Various fixes for binary expression math between iterators
2016-03-14 09:09:13 -04:00
Jonathan A. Sternberg f1faf106b1 Ensure binary expressions cannot mix aggregates and raw fields
Closes #5973.
2016-03-12 11:31:16 -05:00
Nathaniel Cook 2ce94c4ee9 kapacitor fixes for stress 2016-03-11 17:34:34 -07:00
joelegasse 3d544a9136 Merge pull request #5995 from influxdata/jl-type-switch
Change type-switch a few places to reduce allocations.
2016-03-11 17:49:56 -05:00
Jason Wilder eedf68fe79 Merge pull request #5702 from Vidhuran/bug4688-admin-ui-fixes
removed condition check to check if values are returned for queries so that the admin ui displays the same results as cli
2016-03-11 15:18:17 -07:00
Jonathan A. Sternberg 74d51e3842 Support nil values in binary math expressions with two iterators
Related to #5959 and #5973.
2016-03-11 15:57:35 -05:00
Joe LeGasse 344e5abd41 Changed type-switch a few places to reduce allocations.
Slices of tsm1.Value interfaces are only ever used with all the same
types, and the previous code would switch on the type returned from a
call to Value(), which allocated and returned an interface{} object for
the underlying value.

This change instead type-switches on the tsm1.Value object itself,
allowing it direct access to the underlying value field, eliminating the
unecessary allocations.
2016-03-11 15:57:05 -05:00
Jonathan A. Sternberg a33ce8052f Merge pull request #5970 from influxdata/js-5968-forbid-math-in-function-calls
Forbid binary expressions in function calls
2016-03-11 15:49:06 -05:00
Edd Robinson 45dfa36230 Add default port 2016-03-11 12:40:16 -07:00
Ben Johnson beda072426 add support for remote expansion of regex
This commit moves the `tsdb.Store.ExpandSources()` function onto
the `influxql.IteratorCreator` and provides support for issuing
source expansion across a cluster.
2016-03-11 12:40:07 -07:00
Jason Wilder 31a964e890 Move leases to meta.Data 2016-03-11 12:27:08 -07:00
Cory LaNou c972c717b6 remove `client.NodeID` 2016-03-11 12:27:08 -07:00
Ben Johnson b1582ce1c9 add RetentionPolicyInfo marshaling 2016-03-11 12:27:08 -07:00
Nathaniel Cook c57e404bfc Merge pull request #5992 from influxdata/nc-client-update
Add AddPoints method to v2 client
2016-03-11 12:14:40 -07:00
Jason Wilder 3990e93bf7 Merge pull request #5981 from otoolep/default_logging
Format initial logging
2016-03-11 11:25:49 -07:00
Philip O Toole b9cbff8ac4 Format all logging 2016-03-11 10:05:54 -08:00
Nathaniel Cook 68f468817d add AddPoints method to v2 client 2016-03-11 10:28:05 -07:00
Jonathan A. Sternberg 09a9b3c53e Fix aux iterators to respect early closing
The primary input iterator for an aux iterator would continue trying to
send points to a closed channel even after an aux iterator had already
been closed.

This changes the aux iterators to use sync.Cond instead of channels and
lower level syncing primitives for handling buffered input/output.

Fixes #5974.
2016-03-11 12:07:32 -05:00
Vidhuran Harichandra Babu 90b9291953 Removed condition to check if values are returned for queries so that the admin ui displays the same results as cli.
Fixes #4688
2016-03-11 06:29:19 +02:00
Jack Zampolin 156cc5eddf Merge pull request #5975 from influxdata/md-stress-panic
Fix concurrent map access
2016-03-10 11:57:37 -08:00
Michael Desa 11424a889f Fix concurrent map access 2016-03-10 10:06:08 -08:00
Jonathan A. Sternberg 620addadde Forbid binary expressions in function calls
Also fixes derivative calls with an aggregate function to require a
group by interval. The call without a group by interval doesn't make
sense as it will never return anything since it will always have one
point.

Fixes #5968.
2016-03-10 11:38:47 -05:00
Jason Wilder db9d403fd1 Update changelog
[ci skip]
2016-03-10 09:08:25 -07:00
Jason Wilder 998cb0a6a2 Merge pull request #5963 from influxdata/jw-deadlock
Fix possible deadlock
2016-03-10 09:01:31 -07:00
Jonathan A. Sternberg df4c305012 Merge pull request #5961 from influxdata/js-5959-top-incompatible-with-binary-expr
Forbid using top() or bottom() in a binary expression
2016-03-10 10:45:52 -05:00
Jason Wilder c44195d999 Convert measurementToRegex to exported func
Make it consistent with other conventions where exported funcs
take a lock.
2016-03-09 17:45:37 -07:00