Commit Graph

9034 Commits (c1d6c14c47dfb4d60878a979fbdd8b526281d3d6)

Author SHA1 Message Date
Jonathan A. Sternberg c1d6c14c47 Merge pull request #5382 from e-dard/fix-tag-parsing
Fix tag parsing
2016-01-19 12:26:59 -05:00
Edd Robinson 789aff9b23 Fixes #5380 and #5381 2016-01-19 17:10:03 +00:00
Jonathan A. Sternberg 0e0f85a0c1 Merge pull request #5370 from influxdata/js-5262-panic-on-empty-tag-value
Fix a panic when a tag value was empty
2016-01-18 09:26:57 -05:00
Ross McDonald c64de2088e Merge pull request #5377 from influxdata/rm-build-updates
Updates to build.py
2016-01-16 11:23:20 -06:00
Jonathan A. Sternberg 8eac790eab Fix a panic when a tag value was empty
A panic would happen if you wrote the following:
    cpu,host=

There was a missing bounds check when scanning the tag value.

Fixes #5262.
2016-01-16 12:21:32 -05:00
Ross McDonald db68606e89 Added logic to build.py to cleanly handle a 'go get' switching the branch back to master. Modified the build command to reference the actual git branch instead of the target git branch. Added an optional '--no-get' flag to __not__ run 'go get' when building (helpful for small build changes). Added option to specify a non-default S3 bucket for uploads. Added debug flag and output. Also modified 32-bit builds to be marked as i386 instead of 386. 2016-01-16 11:04:42 -06:00
joelegasse e036a4e69b Merge pull request #5371 from joelegasse/issue-5350
Ensure the backup directory exists for 'influxd backup'
2016-01-15 19:05:02 -05:00
Joe LeGasse d0b8b2acab Updated CHANGELOG.md for fixing #5350 2016-01-15 15:13:33 -08:00
Joe LeGasse dfc59e8a13 Ensure the backup directory exists.
Fixes #5350
2016-01-15 14:38:33 -08:00
Ross McDonald 3d4927396f Merge pull request #5357 from odiso/master
postinstall script : use /etc/debian_version for debian/ubuntu detection
2016-01-15 10:21:30 -06:00
Ross McDonald db84a6ed76 Merge pull request #5330 from bwolf/buildpy-pkg-arch
Packaging arch argument for build.py.
2016-01-14 14:04:20 -06:00
Alexandre Derumier 487756fa46 postinstall script : use /etc/debian_version for debian/ubuntu detection
currently we use /etc/lsb-release to detect debian,

but this file is only present on ubuntu.

/etc/debian_version is installed by default by debian and ubuntu
2016-01-14 15:22:48 +01:00
Ben Johnson ba7fc7d548 Merge pull request #5333 from benbjohnson/limit
Limit raw query fetch
2016-01-12 17:06:41 -08:00
Jason Wilder 710f32321a Merge pull request #5331 from influxdata/jw-tsm-fixes
TSM Bug Fixes/Go 1.4.3
2016-01-11 14:54:20 -07:00
Jason Wilder 15d723dc77 Change default engine to tsm1
data engine config var is ignored now and you can only create tsm1
shards.  Exists shards will work as is until they are migrated to
tsm1 shards.
2016-01-11 12:02:36 -07:00
Ben Johnson f5ee6a0713 limit raw query fetch
This commit enforces a limit on `RawMapper` so that it will not
produce more values than are specified by the LIMIT clause.
Previously the mapper would read up to the chunk size and the
values would be limited afterward.
2016-01-11 09:01:49 -07:00
Jason Wilder 24f1bcfd20 Remove Dev prefix from tsm engine/tx 2016-01-10 16:43:36 -07:00
Jason Wilder 9c851f790e Use go1.4.3
Fixes #5283 #5217
2016-01-10 16:43:31 -07:00
Jason Wilder 5b179113fc Don't close tsm cursor prematurely
We were closing the cursor when we read the last block which caused
the internal state to be cleared.  In a group by query, we seeked multiple
times so depending on the group by interval and how the data was laid out
in the blocks, we woudl close the cursor and the last block would get skipped.

Fixes #5193
2016-01-10 15:26:01 -07:00
Marcus Geiger ff595d7e6c Packaging arch argument for build.py.
Add --pkgarch option to build.py to specify the packaging architecture which can be different to GOARCH.
Example: build for debian on raspberry pi. GOARCH will be arm but the packaging architecture on debian will be armhf (arm hard float). The --pkgarch option is passed to fpm to specify the required architecture which is reflected in the package manifest and also in the result filename.
2016-01-10 21:26:09 +00:00
Jason Wilder 72c6a51c78 Merge pull request #5318 from influxdata/jw-restart
Remove MAP_POPULATE
2016-01-08 09:29:01 -07:00
Jason Wilder 3c45015311 Remove MAP_POPULATE
This may be causing slow restart times for systems with many large TSM files.
What I believe is happening at startup in these cases is that multiple goroutines
are started to load each TSM file concurrently.  The kernel appears to serialize
mmap calls from the same process so all of the goroutines end up getting blocked
on the actual mmap system call.  MAP_POPULATE instruct the kernel to pre-fault the
page table for the files and triggers read-ahead of the pages.  For larger, 2GB files,
this makes the mmap call more expensive and slower.  When there are many of these files
and calls it is possible to fill all available memory with pagecache.  In this case,
the OS will end up pre-faulting pages from one file and have to remove pages that it just
loaded from another files causing slowness.  MAP_POPULATE may also be cause much more data
to be pre-faulted than necessary.  To load a file, we just need to scan the index at the end
of the file.  MAP_POPULATE is likely causing the whole file to be loaded when it won't actually
be accessed for a while (or at all).

Might fix issue #5311.
2016-01-08 08:45:27 -07:00
Jonathan A. Sternberg 8fc4cbe7ce Merge pull request #5186 from pires/5077-throw_parse_error
Fixes #5077
2016-01-07 20:29:00 -05:00
Philip O'Toole 82e16a1899 Merge pull request #5309 from influxdata/c_usage
Unit test scrubbing values during conversion
2016-01-07 14:59:39 -08:00
Ross McDonald aa0a379cb2 Merge pull request #4948 from influxdata/build-updates
Build and Packaging Updates
2016-01-07 16:49:20 -06:00
Philip O'Toole db2f3bd5ba Update CHANGELOG for PR 5129
[ci skip]
2016-01-07 14:49:04 -08:00
Philip O'Toole 653dba3759 Merge pull request #5129 from e-dard/fix-precision-flag
Ensure precision flag is respected in CLI
2016-01-07 14:48:57 -08:00
Jason Wilder 16829dedc8 Merge pull request #5308 from influxdata/jw-compact-large
Use block size and file size before skipping a file during compactions
2016-01-07 15:48:03 -07:00
Philip O'Toole cd2de5f25d Unit test scrubbing values during conversion 2016-01-07 14:33:42 -08:00
Edd Robinson c6d32bd1bb Fix #5127 2016-01-07 22:30:46 +00:00
Jason Wilder 756421ec4a Look for fully compacted block in addition to max size during compaction
Some data shapes would cause files to grow larger than the max size more
quickly which resulted in them getting skipped by the full compaction planner
at times.  Some datasets that could make this happen are very large keys or
very large numbers of keys (10M).  When this happened, multiple max sized
files would accumulate but the blocks would not be full.  When the shard went
cold for writes, these files would get recompacted down to the optimal size, but
a lot of space would be wasted in the mean time.
2016-01-07 15:18:42 -07:00
Philip O'Toole 7ccbbecf03 Merge pull request #5306 from influxdata/c_usage
Show disk usage reduction factor post-compression
2016-01-07 14:14:59 -08:00
Paulo Pires 17c2a344cd Fixed database creation with retention statement parsing. Fixes #5077 2016-01-07 22:08:19 +00:00
Philip O'Toole 2d2c315356 Dump points per TSM point written 2016-01-07 13:58:23 -08:00
Jason Wilder 0264d77545 Fix block sizes reported by influx_inspect 2016-01-07 14:51:59 -07:00
Philip O'Toole 13d2b69c29 Dump conversion factor on completion 2016-01-07 13:50:56 -08:00
Philip O'Toole bab2a00e5d Track bytes written by conversion tool 2016-01-07 13:50:45 -08:00
Philip O'Toole 9b02808e6c ShardInfos now returns size 2016-01-07 13:36:25 -08:00
Ross McDonald 560f691096 A few updates:
- Re-enabling support for ARM builds in `build.py`.
- Improved `build.py`'s iteration and package version.
- Fixed minor bug with logrotate file path in `build.py`.
- Improved installation pre and post install/uninstall scripts by adding distribution-specific logic to account for quirks between the different package managers.
- Added post-install as post-trans script for RPM builds due to the order of RPM upgrade commands (issue where init scripts were removed when upgrading).
- Added explicit backup to pre-install script to ensure legacy configuration survive an upgrade.
2016-01-07 15:03:43 -06:00
Jason Wilder bd63489ef0 Update changelog
[ci skip]
2016-01-07 08:30:59 -07:00
Philip O'Toole 7f673c79a3 Revert build steps since imports not updated
[ci skip]
2016-01-06 17:43:05 -08:00
Mark Rushakoff 6022775c55 Merge pull request #5172 from influxdata/quoteident-alias
Add missing QuoteIdent
2016-01-06 17:00:34 -08:00
Philip O'Toole c1e847af22 Update CHANGELOG for PR 5226
[ci skip]
2016-01-06 14:00:49 -08:00
Philip O'Toole db7c133f3c Merge pull request #5287 from influxdata/c_fixes
Ignore points without fields
2016-01-06 13:54:33 -08:00
Jason Wilder 382a2d601d Merge pull request #5289 from influxdata/jw-memory
Reduce allocations with TSM queries
2016-01-06 13:27:07 -07:00
Jason Wilder faf8ee17fa Fix typo 2016-01-06 12:53:04 -07:00
Philip O'Toole 067cc71923 Count number of fieldless points filtered 2016-01-06 11:52:42 -08:00
Jason Wilder d2b7c03175 Re-use the series key
Avoid allocating the string twice.
2016-01-06 12:52:13 -07:00
Jason Wilder 59e08606cb Avoid copying slice when escaping/unescaping tags
byte.Replace will return a copy of the input even when nothing has
been replaced.  This is called in lower level query execution and
create some garbage that isn't necessary.
2016-01-06 12:45:29 -07:00
Philip O'Toole ff96e17ddb Skip points without fields 2016-01-06 11:45:20 -08:00