Commit Graph

13055 Commits (a85306c53e2de2fa29c43e951bd9d486bea5dc39)

Author SHA1 Message Date
Jason Wilder 02dbe6dbd3 Fix KeyCursor not return remaing blocks
If the first block that needs to be read was partially deleted such
that the trailing end has no values, it was possible for the query
cursor end early.

This was caused by the KeyCursor.ReadFloatBlock returning no values instead
of checking the remaing blocks.
2017-11-16 15:23:34 -07:00
Stuart Carnie 95e086d4fb
Merge pull request #9126 from influxdata/sgc-cleanup
remove empty file
2017-11-16 09:16:22 -08:00
Stuart Carnie 2c2244b79c remove empty file 2017-11-16 09:02:31 -08:00
wyc c0d184ee93 Influx CLI: More Connection Warnings
If we don't detect a server version, then there's a good chance that
we're not speaking to an InfluxDB server. We should warn the user about
this to make it easier for them to debug.
2017-11-16 11:59:29 -05:00
Jonathan A. Sternberg 5f16934aa7 Fix space required after regex operator
Fixed via influxdata/influxql#4 by @stop-start. Thanks!
2017-11-16 08:45:40 -06:00
Ben Johnson ede3fcf98e
intermediate 2017-11-15 16:09:25 -07:00
Mark Rushakoff 8b345bf5aa Update changelog for 1.4.2 release 2017-11-15 14:49:51 -08:00
Jason Wilder e2cb1d0ff4
Merge pull request #9114 from influxdata/jw-force-full-plan
Add capability to force a full compaction
2017-11-15 10:45:00 -07:00
Jason Wilder c3c4fd5d2e
Merge pull request #9117 from influxdata/jw-exclude-panic
Fix panic: runtime error: slice bounds out of range
2017-11-15 10:43:49 -07:00
Jason Wilder dde2d87ec9 Update changelog
[ci skip]
2017-11-15 09:06:31 -07:00
Jason Wilder ef06773d5b Fix panic: runtime error: slice bounds out of range
A panic could occur if an invalid time range was passed to
Exclude/Include, etc.
2017-11-15 08:18:53 -07:00
Jason Wilder 4b07139feb Update to xenial 2017-11-15 07:14:45 -07:00
Jason Wilder 97e0d496a6 Add capability to force a full compaction
This adds the capability to the engine to force a full compaction
to be scheduled.  When called, it snapshots any data in the cache,
aborts running compactions and prevents level plans from returning
level plans.
2017-11-15 07:14:27 -07:00
Edd Robinson f149c9f756
Merge pull request #9115 from liketic/bugfix/issues/9070
Fix wrong link to key concepts in README
2017-11-15 11:27:02 +00:00
liketic dd439f5777 Fix wrong link to key concepts in README 2017-11-15 16:36:37 +08:00
Ben Johnson ba4c9e0317
Merge remote-tracking branch 'upstream/master' into er-tsi-index-part 2017-11-14 16:14:13 -07:00
Jonathan A. Sternberg 97ab61addb
Merge pull request #9092 from influxdata/jenkinsfile
Initial jenkinsfile
2017-11-14 11:12:32 -06:00
Jonathan A. Sternberg 1e1c1f72e4
Merge pull request #9111 from influxdata/js-encode-duration-as-string
Encode durations as a string so they are more user-friendly
2017-11-14 11:08:35 -06:00
Mark Rushakoff db551f5489
Merge pull request #9103 from influxdata/mr-14-changelog
Update changelog for 1.4.1
2017-11-14 08:35:58 -08:00
Jonathan A. Sternberg 332de90f9d Encode durations as a string so they are more user-friendly 2017-11-14 10:35:10 -06:00
Mark Rushakoff 711da24562 Update changelog for 1.4.1 2017-11-14 08:15:57 -08:00
Stuart Carnie 56a8929347
Merge pull request #9104 from influxdata/sgc-ifql
fix descending queries and ranges
2017-11-13 18:18:23 -07:00
Stuart Carnie 2e04e871c9 fix descending queries
* did not handle cached values correctly
* sort shards by time in either ascending or descending
  order depending on the RPC request ordering to ensure they
  are traversed in the correct order.
2017-11-13 17:14:36 -08:00
Jason Wilder 48e21e6fc8
Merge pull request #9084 from influxdata/jw-delete-time
Handle high cardinality deletes in TSM engine
2017-11-13 14:39:54 -07:00
Jason Wilder a8646b6d4d Update changelog
[ci skip]
2017-11-13 14:33:47 -07:00
Jonathan A. Sternberg ca5a773c34 Initial jenkinsfile 2017-11-13 14:02:23 -06:00
Jason Wilder 8b18cc4456 Optimize deletes in tsi
The DropSeries code path ended up creating a MeasurementSeriesIterator
for each dropped series, this was too expensive just to see if a
series exists.

This adds a HasSeries func and fixes and issue where TSI files were
compacted while an iterator was still in use causing a panic.
2017-11-13 12:35:38 -07:00
Stuart Carnie ae0b28a583
Merge pull request #9098 from influxdata/sgc-ifql
rename config section to ifql
2017-11-13 12:10:50 -07:00
Stuart Carnie 40ffa49a62 rename config section to ifql
Renaming for discoverability for the initial release of ifql
2017-11-13 11:05:02 -08:00
Jonathan A. Sternberg 080b2ec781
Merge pull request #9096 from influxdata/js-zap-lock-writer
Lock the zap write output to avoid race conditions when logging
2017-11-13 10:39:42 -06:00
Mark Rushakoff a1329cc0cb
Merge pull request #9095 from stop-start/fix-shell-ignores-extra-parameters
shell shows error and usage when given extra parameters
2017-11-13 08:25:47 -08:00
e-wave 2123fc3b04 changelog 2017-11-13 18:24:01 +02:00
e-wave 75e142c41a use of flag.Args instead of flag.NArg 2017-11-13 18:07:00 +02:00
Jason Wilder 5763d01613 Fix brtfs docker build messages 2017-11-13 09:02:10 -07:00
Jason Wilder c0631c2b95 Fix temp tombstone files leaking 2017-11-13 09:02:10 -07:00
Jason Wilder 13692639cb Fix create/delete series race
This fixes a race where writes and deletes to the same series and
measurements could sometimes leave the index in an inconsistent state.
2017-11-13 09:02:10 -07:00
Jason Wilder 04f4c3e993 Optimize bytesutil.Pack 2017-11-13 09:02:10 -07:00
Jason Wilder 80cd5e63af Optimize DeleteSeriesRange
This removes more allocations and speeds up some critical sections.
2017-11-13 09:02:10 -07:00
Jason Wilder aee395d3bd Make DeleteSeriesRange take SeriesIterator 2017-11-13 09:02:10 -07:00
Jason Wilder f893beb6d8 Use MeasurementSeriesKeysByExprIterator for deletes 2017-11-13 09:02:10 -07:00
Jason Wilder 16d1f4309b Extract MeasurementSeriesKeysByExprIterator 2017-11-13 09:02:10 -07:00
Jason Wilder 000768371f Optimized deletes in TSM index
This optimizes how deletes are processed to reduce memory usage
and improve efficiency.
2017-11-13 09:02:08 -07:00
Ben Johnson 9756a29678
import fix 2017-11-13 08:54:32 -07:00
Jason Wilder eebd88f825 Don't write tombstones for keys that do not exist
This filters out keys that do not exist in a TSM file to avoid
writing entries that would end up being ignored when applied.
2017-11-13 08:50:07 -07:00
Jason Wilder ca4998f29e Fix pid test to ignore local data
If you have lots of data stored locally, this test takes a while to
complete since it loads it all up from the users home dir.
2017-11-13 08:50:07 -07:00
Jason Wilder 88c48ec78b Rework Engine.DeleteSeriesRange to avoid allocations
This removes the containsSeries func which ends up creating a map
sized to the slice of keys passed in.  This doesn't scale well to
high cardinalities and creates a lot of garbage.
2017-11-13 08:50:07 -07:00
Jason Wilder cb658774bb Reduce allocations when reading tombstone v4 2017-11-13 08:50:07 -07:00
Jason Wilder 1c65bb3bb1 Fix leaked goroutine in FileStore.WalkKeys
If fn returned and error, the goroutines sending keys from TSM files
would get blocked indefinitely and leak.
2017-11-13 08:50:07 -07:00
Jason Wilder b0c7a44eaa Adjust min/max time to work in the engine
The query language min and max times are slighly different than the
values used in the engine.  This allows faster codes to be used when
the whole time range is deleted.
2017-11-13 08:50:07 -07:00
Jason Wilder 2959b8d2eb Make BatchDeleters concurrent 2017-11-13 08:50:07 -07:00