Commit Graph

13183 Commits (6a66b5faf0ac1c8441e61589fab61dae416d7f15)

Author SHA1 Message Date
Jason Wilder 92f86b1b8f Fix large memory spikes in cache
The cache defaulted to entry capacity size of 32.  This default
is fine for lower cardinalities, but causes big spikes in InUse
heap with higher cardinalities that can OOM the process.  Since
the hints had to be removed previously due to increased memory usage,
they are now completely removed.  For lower cardinalities, we do
grow the slice, but this has a small performance penalty compared
to the large memory usage/OOMs with larger cardinalities.
2018-01-10 07:56:46 -07:00
Edd Robinson 6eeecb477e Fix race in DeleteDatabase 2018-01-10 14:33:14 +00:00
Ben Johnson 3108eea330
Merge pull request #9291 from influxdata/bj-fix-series-file-delete
Fix series file removal after DROP DATABASE.
2018-01-08 13:20:02 -07:00
Ben Johnson fe2116a4fc
Fix series file removal after DROP DATABASE. 2018-01-08 11:40:06 -07:00
David Norton 1ea41b0dd6
Merge pull request #9287 from influxdata/dn-return-digest-size
fix #9286: return digest size
2018-01-08 13:30:56 -05:00
David Norton 1c452d83cb fix #9286: return digest size 2018-01-08 13:15:14 -05:00
Ben Johnson f2adaf68a7
Merge pull request #9288 from influxdata/bj-fix-stalled-series-file-compaction
Fix series file compaction stall.
2018-01-08 10:18:41 -07:00
Ben Johnson c0a46d2d3d
Fix series file compaction stall.
The series file compaction previously did not snapshot the max
offset before compacting and would keep compacting until it reached
the end of segment file. This caused more entries than expected into
the RHH map and this map gets exponentially slower as it gets close
to full.
2018-01-08 09:53:01 -07:00
Ben Johnson 88ce43a639
Merge pull request #9285 from influxdata/bj-series-file-windows
WIP: Close series file on database deletion.
2018-01-08 09:51:58 -07:00
Ben Johnson 6f32f15fd3
Add closed series file checks. 2018-01-08 09:11:29 -07:00
Ben Johnson 370d363d38
Close series file on database deletion. 2018-01-05 13:33:35 -07:00
Edd Robinson a43cff36ee
Merge pull request #9284 from influxdata/er-series-dir
Change series dir location
2018-01-05 19:29:00 +00:00
Edd Robinson 86c443cb02 Change series dir location 2018-01-05 16:40:23 +00:00
Edd Robinson c854c67ead
Merge pull request #9283 from influxdata/er-tag-keys
Fix duplicate Tag Keys
2018-01-05 14:34:52 +00:00
Edd Robinson 83d0ec8359 Optimise TagKeys and fix duplication bug 2018-01-05 12:51:21 +00:00
Edd Robinson 7dced43f02 Unskip test 2018-01-05 12:24:27 +00:00
Edd Robinson 58636746d4
Merge pull request #9270 from influxdata/er-test-cleanup
Ensure test data deleted from disk
2018-01-05 11:53:46 +00:00
Ben Johnson 6b4a21cdb2
Merge pull request #9282 from benbjohnson/fix-series-segment-replay
Fix series segment replay.
2018-01-04 18:32:53 -07:00
Ben Johnson eab6333c27
Fix SeriesSegment replay. 2018-01-04 18:28:02 -07:00
Jason Wilder b647c9d29b
Merge pull request #9278 from hpbieker/hpb-compacting-sorting-2
Fixed issue where compacting did not sort when blocks are unsorted and overlapping
2018-01-04 13:21:18 -07:00
Edd Robinson 176a7e1e98
Merge pull request #9280 from influxdata/er-series-dir
Skip series dir and Godep updates
2018-01-04 19:02:05 +00:00
Hans P. Bieker a85306c53e Updated mergeUnsigned by running "go generate ./tsdb/engine/tsm1". 2018-01-04 19:35:01 +01:00
Edd Robinson e463af9f69 Update LICENSE_OF_DEPENDENCIES 2018-01-04 16:23:50 +00:00
Edd Robinson 845e324ca2 Update Godeps 2018-01-04 16:23:50 +00:00
Edd Robinson f73a710320 More insight into assertion 2018-01-04 16:23:50 +00:00
Edd Robinson c13910a51f Don't try to load .series directory 2018-01-04 16:23:50 +00:00
Ben Johnson d89ecdc753
Merge pull request #9279 from benbjohnson/fix-series-file-compaction
Fix series file key/id map compaction.
2018-01-04 09:18:58 -07:00
Ben Johnson 28e6a1a7c2
Fix series file key/id map compaction. 2018-01-04 09:16:29 -07:00
Hans Petter Bieker 7a273ccdb5 Fixed issue where compacting did not sort when block are unsorted and overlapping. 2018-01-04 15:25:26 +01:00
Jason Wilder bf66f20388
Merge pull request #9267 from hpbieker/hpb-compacting-sorting
Sort blocks by time when compacting
2018-01-03 17:43:38 -07:00
Ben Johnson 3ac428920c
Merge pull request #9276 from benbjohnson/fix-series-index-compaction
Fix series index compaction.
2018-01-03 15:13:19 -07:00
Ben Johnson 444384fd45
Merge pull request #9275 from benbjohnson/tsi-series-check
Add series existence check in tsi1.
2018-01-03 15:13:08 -07:00
Ben Johnson 48648e828d
Fix series index compaction. 2018-01-03 12:47:07 -07:00
Ben Johnson 31c50532db
Add series existence check in tsi1. 2018-01-03 12:20:35 -07:00
Ben Johnson 98486a284a
Merge pull request #9265 from benbjohnson/series-file-compaction
Sequential series file id & series file segmentation
2018-01-03 10:05:59 -07:00
Ben Johnson 3900c948a2
Fix requested changes. 2018-01-03 10:04:12 -07:00
Edd Robinson 5efeed4ccc Add import 2018-01-03 16:50:44 +00:00
Edd Robinson f9ea54198f rename series directory 2018-01-03 15:44:58 +00:00
hpbieker c892bf15a1 Fix missing sorting of blocks when compacting. 2018-01-03 10:21:11 +01:00
hpbieker 35cf21ed43 Added changelog. 2018-01-03 09:50:31 +01:00
hpbieker ee185e18b7 Added unit test TestCompactor_Compact_UnsortedBlocks. 2018-01-03 09:42:36 +01:00
Jonathan A. Sternberg da9774fd27
Merge pull request #9184 from influxdata/js-influx-node-id-option
Allow setting the node id in the influx cli program
2018-01-02 14:34:37 -06:00
Ben Johnson 52630e69d7
Integrate SeriesFileCompactor 2018-01-02 12:20:03 -07:00
Edd Robinson 1f3352efbd
Merge pull request #9153 from influxdata/er-prom-parsing
Fix Prometheus regex parsing
2018-01-02 18:39:46 +00:00
Jonathan A. Sternberg bf283f0952
Merge pull request #9220 from influxdata/js-9216-panic-on-double-kill
Prevent a panic when a query simultaneously finishes and is killed at the same time
2018-01-02 12:06:04 -06:00
Jonathan A. Sternberg af23897940 Allow setting the node id in the influx cli program
The string `node <n>` can be used to specify which data node the data
should be retrieved from. This uses the `node_id=X` query parameter that
is supported, but wasn't exposed anywhere in the client library.

We use this feature enough internally when attempting to find
inconsistencies or network errors that it is easier if this is just
supported. Otherwise, I continue having to recompile the CLI program
every time I need to do this.

To clear a previously set node, you can use `node 0` or `node clear`.
2018-01-02 11:15:19 -06:00
Jonathan A. Sternberg ecba19eb27 Prevent a panic when a query simultaneously finishes and is killed at the same time
There is a strange race condition where a query can be killed and finish
at approximately the same time. If this happens, the query gets
retrieved by the killing task, the query gets closed by the normal
processing thread, and then the killing task attempts to kill the query
afterwards. Since the close doesn't mark the query as already killed
(since it's not killed, just merely unused), the killing thread attempts
to close the channel again.

Mark the query as killed whenever it is closed to prevent a double close
from happening. This should never cause the status to be erroneously
reported since the query status is removed from the query table within
the same lock scope.
2018-01-02 11:04:01 -06:00
Edd Robinson 760a9e88ec Ensure test data deleted from disk 2018-01-02 12:51:24 +00:00
Stuart Carnie 80f1120c3e
Merge pull request #9164 from influxdata/sgc-inmem-startup
inmem startup improvments
2017-12-29 13:33:49 -07:00
Ben Johnson 56980b0d24
Segment series file 2017-12-29 11:57:45 -07:00