Commit Graph

12824 Commits (6851db3fc9060fc35f0fa707f6841b2f1c9d5475)

Author SHA1 Message Date
Ben Johnson 5a77238f30
Sort & validate TSI key value insertion. 2017-10-23 10:46:01 -06:00
Ben Johnson 6aaa77241a Merge pull request #8963 from benbjohnson/streaming-inmem2tsi
Streaming inmem2tsi conversion.
2017-10-20 15:14:53 -06:00
Ben Johnson 5af2d73867
CHANGELOG 2017-10-20 15:14:39 -06:00
Ben Johnson 1f4e070b3a
Switch to use tsm1.CacheLoader. 2017-10-20 15:14:17 -06:00
Ben Johnson ea43660a55
Streaming inmem2tsi conversion.
Changes the `influx_inspect inmem2tsi` tool to stream each TSM/WAL
file and convert to a TSI index instead of loading the entire shard's
in-memory index first.
2017-10-20 15:14:17 -06:00
Stuart Carnie 21db403342 Merge pull request #8993 from influxdata/sgc-32bit-fixes
fix overflow for 32-bit architecture
2017-10-20 10:58:56 -07:00
Stuart Carnie ac3bf300d3 fix overflow for 32-bit architecture 2017-10-20 10:22:28 -07:00
Stuart Carnie 9119c6ff9a Merge pull request #8991 from influxdata/sgc-go18-fix
make (*T).Helper() optional for Go 1.8 compatibility
2017-10-20 09:35:51 -07:00
Stuart Carnie 4150f64711 Merge pull request #8992 from influxdata/sgc-explain-cl
Update CHANGELOG for EXPLAIN ANALYZE feature
2017-10-20 09:03:02 -07:00
Stuart Carnie 47a2f8745e make (*T).Helper() optional 2017-10-20 08:59:50 -07:00
Stuart Carnie d7b73f9b02 Update CHANGELOG 2017-10-20 08:58:45 -07:00
Stuart Carnie 618f0d0aa7 Merge pull request #8947 from influxdata/sgc-explain
EXPLAIN ANALYZE implementation
2017-10-20 08:35:13 -07:00
Stuart Carnie e9313876ab EXPLAIN ANALYZE
* Introduces EXPLAIN ANALYZE command, which
  produces a detailed tree of operations used to
  execute the query.

introduce context.Context to APIs

metrics package

* create groups of named measurements
* safe for concurrent access

tracing package

EXPLAIN ANALYZE implementation for OSS

Serialize EXPLAIN ANALYZE traces from remote nodes

use context.Background for tests

group with other stdlib packages

additional documentation and remove unused API

use influxdb/pkg/testing/assert

remove testify reference
2017-10-20 08:01:37 -07:00
Jonathan A. Sternberg 4cdb7828d4 Merge pull request #8990 from influxdata/js-pid-file-code-cleanup
Code cleanup for removing the pid file
2017-10-20 09:36:18 -05:00
Jonathan A. Sternberg 75b8d9cd4f Code cleanup for removing the pid file 2017-10-20 09:17:16 -05:00
Jonathan A. Sternberg 8c42345c69 Merge pull request #8987 from influxdata/js-8983-remove-pid-file
Remove the pidfile after the server has exited
2017-10-20 09:16:00 -05:00
Jonathan A. Sternberg 2005a8c8e5 Remove the pidfile after the server has exited 2017-10-19 16:33:59 -05:00
Jonathan A. Sternberg f58a194ee0 Merge pull request #8980 from influxdata/js-8780-prevent-deadlock-during-collectd-shutdown
Prevent deadlock during collectd, graphite, opentsdb, and udp shutdown
2017-10-19 16:33:38 -05:00
Jonathan A. Sternberg 83ecab6299 Prevent deadlock during collectd, graphite, opentsdb, and udp shutdown
All of these services start up goroutines and then wait for the
goroutines to finish. Each of them has a `tsdb.PointBatcher` that may
return a point during the shutdown sequence. During the shutdown
sequence, a lock was held. This lock may get accessed when attempting to
write the point that came back from the `tsdb.PointBatcher`. This caused
the read lock attempt to wait forever for the write lock to be unlocked
during `Close()`.

This modifies these methods so that the write lock is released while
waiting for goroutines to finish in these three services.
2017-10-19 15:57:05 -05:00
Jason Wilder 5650ac7320 Merge pull request #8981 from influxdata/jw-block-iterator
Fix data being dropped during compactions
2017-10-19 11:08:59 -06:00
Jason Wilder 05131f4453 Fix indirectIndex not removing fully deleted series
If multiple tombstones exists for a series that ended up causing the
full data to be deleted, the blocks were not removed from the offsets
in the index.  This causes the TSMReader to report that a key exist
but does not have any data.

During a compaction, every key should have at least one value.  Since
this invariant was broken, the compaction aborted early and ends up
dropping all series keys that are lexigraphically greater than where
the breakage occured.  This would cause data to be dropped during the
compaction.
2017-10-18 18:16:41 -06:00
Jason Wilder 9f102adabe Abort BlockIterator iteration if deletes detected
This fixes a potential bug where the BlockIterator would skip blocks
if the underlying TSMReader had deletes on it concurrently.  This
could possibly occur due to changes in 91eb9de3 that now use the
existing TSMReaders from the FileStore instead of creating new ones
during compaction.
2017-10-18 18:16:37 -06:00
Jason Wilder 1bbf9139d0 Merge pull request #8979 from influxdata/jw-delete-time
Fix data deleted outside of time range
2017-10-18 17:30:21 -06:00
Jason Wilder 4d171f3f40 Fix data deleted outside of time range 2017-10-18 13:39:47 -06:00
Ben Johnson 62093d2641 Merge pull request #8975 from benbjohnson/tsi-copy-returned-bytes
Copy returned bytes from TSI meta functions.
2017-10-18 09:26:02 -06:00
Edd Robinson 9b55ee2b90 Merge pull request #8935 from posquit0/patch-1
Fix mis-typing in README.md of UDP Service
2017-10-18 15:57:50 +01:00
Byungjin Park f7d8ad50e2 Update README.md 2017-10-18 22:46:44 +09:00
Jason Wilder 3bb56c6d5e Merge pull request #8976 from influxdata/jw-tsi-interrupt
Fix max select series limit for tsi
2017-10-18 07:27:23 -06:00
Ben Johnson 264971fc5a
CHANGELOG 2017-10-18 07:22:49 -06:00
Ben Johnson 8ad2048a6b
TSI byte copy usage comments. 2017-10-18 07:21:54 -06:00
Ben Johnson d17d0f18e0
Move copyBytes() and copyByteSlices() to bytesutil. 2017-10-18 07:19:46 -06:00
Jason Wilder a6f4069ca7 Fix max select series limit for tsi
TSI did not check that the max select series limit during planning
the same way that inmem did.  This means that the limit could be
set but the planning of a high cardinality query would still OOM
the server.  This fixes that limit as well as makes the query interruptible
during planning.
2017-10-17 15:24:41 -06:00
Ben Johnson dceb88eb30
Copy returned bytes from TSI meta functions. 2017-10-17 14:05:35 -06:00
Jason Wilder 049a9a859d Merge pull request #8949 from influxdata/jw-engine-fixes
Engine race fixes
2017-10-16 11:14:30 -06:00
Jason Wilder 4f8580fbaa Fix race in disableLevelCompactions
There was a race on the WaitGroup where we could end up calling Add
while another goroutine was still waiting.  The functions were confusing
so they have been simplified a bit since the compactions goroutines
have been reworked a lot already.
2017-10-16 10:50:16 -06:00
Jason Wilder 5033783a33 Handle deleted series when rebuilding measurment index 2017-10-16 10:50:16 -06:00
Jason Wilder e683502dd6 Merge pull request #8961 from lrita/master
remove duplicated code in cacheKeyIterator.encode()
2017-10-16 10:17:32 -06:00
Jason Wilder bc360ccfd5 Merge pull request #8970 from influxdata/jw-wal-panic
Fix corrupted wal segment panic on 32 bit systems
2017-10-16 10:00:02 -06:00
Jason Wilder fb7135ddc8 Fix corrupted wal segment panic on 32 bit systems 2017-10-16 09:41:20 -06:00
Mark Rushakoff 5bf9191a82 Merge pull request #8954 from influxdata/mr-config-tests
Initial integration tests for config settings
2017-10-13 17:55:10 -07:00
Mark Rushakoff 4ed2e6f21e Minor cleanup 2017-10-13 17:28:24 -07:00
lrita 2f0aa4a420 remove duplicated code in cacheKeyIterator.encode() 2017-10-13 20:39:15 +08:00
Mark Rushakoff 84583edf97 Merge pull request #8956 from influxdata/mr-rpm-shadow-utils
Add rpm dependency on shadow-utils for useradd
2017-10-12 09:59:17 -07:00
Mark Rushakoff be0438ad36 Add rpm dependency on shadow-utils for useradd
Fixes #8951.
2017-10-12 09:13:01 -07:00
Stuart Carnie 85425e8d7f Merge pull request #8955 from influxdata/sgc-cleanup
remove unnecessary err value
2017-10-12 08:35:01 -07:00
Stuart Carnie a0848eac8c remove unnecessary err value
readKey never sets error, so it is always nil
2017-10-12 08:28:53 -07:00
Mark Rushakoff f3f1cc1064 Initial integration tests for config settings 2017-10-11 17:16:42 -07:00
Jason Wilder 6d93507389 Merge pull request #8942 from influxdata/jw-inspect
Add support for exact cardinality count to influx_inspect
2017-10-10 10:44:31 -06:00
Jason Wilder 00223fc55f Merge pull request #8940 from influxdata/jw-compact2
Only schedule one compaction per shard at a time
2017-10-10 10:05:36 -06:00
Mark Rushakoff 767583c31a Merge pull request #8944 from influxdata/mr-package-dir
Fix tarball packaging paths
2017-10-10 08:00:27 -07:00