Commit Graph

7136 Commits (a4c1d9a9a79097dc9bfd21ca44c723ec2eb8b15e)

Author SHA1 Message Date
Jason Wilder a4c1d9a9a7 Remove unused Database index names and sorting
Writes could timeout and when adding new measurement names to the
index if the sort took a long time.  The names slice was never
actually used (except a test) so keeping it in index wastes memory
and sort it wastes CPU and increases lock contention.  The sorting
was happening while the shard held a write-lock.

Fixes #3869
2015-08-27 11:57:20 -06:00
dgnorton fec53e8357 Merge pull request #3866 from influxdb/dgn-influxql-spec-update
update INFLUXQL.md
2015-08-27 13:35:38 -04:00
David Norton 3c45838c10 update INFLUXQL.md 2015-08-27 08:38:16 -04:00
Philip O'Toole a74f7e32aa Merge pull request #3859 from influxdb/log_go_version
Log Go runtime version
2015-08-26 14:59:08 -07:00
Philip O'Toole 94484067f3 Log Go runtime version 2015-08-26 14:47:59 -07:00
Sean Beckett ecd35c9678 Update CHANGELOG.md 2015-08-26 14:40:33 -07:00
Philip O'Toole ad94329fba Fix typo in 0.9.3 release date 2015-08-26 14:37:44 -07:00
Philip O'Toole e33ca89559 0.9.3 is out 2015-08-26 14:37:22 -07:00
Paul Dix f865648403 Update README.md 2015-08-26 17:24:24 -04:00
Jason Wilder 4d417db3b0 Merge pull request #3857 from influxdb/jw-deadlock
Fix deadlock in metastore
2015-08-26 14:50:32 -06:00
Jason Wilder 0286a3e7fe Fix deadlock in metastore
The interaction of continuous query service, the meta-store loading
and initializing raft state, and syncing node info could cause a
deadlock in some instances.  There was an extra read-lock taken by isLeader()
when it already had a read-lock.  Removing this extra lock fixes the startup
deadlock.

Fixes #3607
2015-08-26 14:43:17 -06:00
Paul Dix 0a51b1f584 Merge pull request #3853 from benbjohnson/4k
Use 4KB default block size for bz1
2015-08-26 13:22:33 -04:00
Ben Johnson 3ce001929c Use 4KB default block size for bz1
This commit changes the default block size from 64KB to 4KB for
bz1. This was lowered because small blocks were being uncompressed,
merged, recompressed, and inserted for a large portion of updates.
This became slower and slower over time until it reached the 64KB
threshold. We moved to the 4KB threshold in order to lower the
impact of this recompression.
2015-08-26 11:05:01 -06:00
dgnorton 2cf6233cbc Merge pull request #3808 from influxdb/dmq-show-measurements2
convert SHOW MEASUREMENTS to a distributed query
2015-08-26 11:43:38 -04:00
Philip O'Toole 8f4fc3b9c6 Merge pull request #3823 from influxdb/deterministic_first_last
Enforce predictable order for first() and last()
2015-08-26 08:42:28 -07:00
Philip 5f5c3a30b2 Update CHANGELOG 2015-08-25 22:31:47 -07:00
Philip O'Toole 10779c9634 Unit-test predictable first/last point ordering 2015-08-25 22:26:04 -07:00
Philip 45cc51edfe During first() and last(), break any tie by value
If 2 or more points during this map-and-reduce share the same timestamp,
the tie is broken by looking at the value. This ensures that these
functions operate in a deterministic manner.

This solution due to @jwilder
2015-08-25 22:26:03 -07:00
Daniel Morsing 3d92f3ab0a Merge pull request #3846 from influxdb/reuseheap
reuse pointsheapItem
2015-08-25 17:27:49 -06:00
Daniel Morsing 391d8cd8d7 reuse pointsheapItem
Since we already got a pointsHeapItem, let's just reuse it instead
of allocating a new one. This cuts allocated memory of a 1 million
points aggregate query from 4881.97MB to 4139.86MB
2015-08-25 17:07:34 -06:00
Paul Dix d903cc351e Merge pull request #3845 from influxdb/pd-fix-wal-meta-panic
Fix metafile so it doesn't get trampled by other goroutines.
2015-08-25 18:35:03 -04:00
Philip O'Toole 2b8858baa7 Merge pull request #3842 from influxdb/loop_queries
Allow queries to be looped
2015-08-25 15:24:12 -07:00
Paul Dix 0d744dafed Fix metafile so it doesn't get trampled by other goroutines.
Fixes #3832 and fixes #3833
2015-08-25 18:23:24 -04:00
Philip O'Toole ca52a3ffd7 Allow queries to be looped
Some queries may be subject to race conditions. This variable allows the
test to request that a query is executed multiple times, increasing the
chance that any race will be exposed.
2015-08-25 15:16:13 -07:00
Daniel Morsing db2bff682b Merge pull request #3836 from influxdb/unusedbuffer
Remove unused buffer allocation
2015-08-25 15:51:02 -06:00
Daniel Morsing 71a83b7f9d Remove unused buffer allocation
The buffer allocation in bz1 was unused and I'm fairly certain that it
was harmful to performance if used. For queries that run through a bz1
block, needing to hold on to a 64kb block is expensive. Better to churn
on the allocator and have the blocks be released when they are unused
than to have 64kb hanging around for each series regardless of size.

Thanks to @jwilder for brainstorming this issue with me.
2015-08-25 14:51:17 -06:00
Paul Dix a4735624f8 Merge pull request #3829 from influxdb/pd-fix-missing-data-after-flush
Fix missing data in aggregates with bz1
2015-08-25 16:27:03 -04:00
David Norton d8be9b4222 test SHOW MEASUREMENTS when no rows returned 2015-08-25 16:18:28 -04:00
Paul Dix 8c6af91e93 Fix bug with bz1 where some data would get hidden.
Seeking to the middle of a compressed block wasn't working properly. Fixes #3781
2015-08-25 16:16:59 -04:00
Daniel Morsing 40dab87ac9 Merge pull request #3817 from influxdb/walmem
Walmem
2015-08-25 13:29:42 -06:00
David Norton 7b19a93459 add test for distributed SHOW MEASUREMENTS 2015-08-25 14:33:49 -04:00
Cory LaNou afafe1db18 Merge pull request #3828 from influxdb/support-all-numbers-in-points
Support all number types when decoding a point
2015-08-25 10:56:36 -05:00
Cory LaNou 6ba24e804a do not support uint64 2015-08-25 10:47:25 -05:00
David Norton fca932b943 skip deleted shard groups 2015-08-25 10:56:41 -04:00
David Norton 244948dc8d update shard mapper test 2015-08-25 10:20:58 -04:00
Cory LaNou 74dad8c68c fix collectd tests for float data 2015-08-25 09:14:38 -05:00
David Norton 6f0ba18904 fix TestDropMeasurementStatement 2015-08-25 10:01:38 -04:00
Cory LaNou f5230ecef4 fix changelog type 2015-08-25 08:55:24 -05:00
Cory LaNou 9204d88660 changelog 2015-08-25 08:54:31 -05:00
Cory LaNou 7916cade08 support all number types when decoding a point 2015-08-25 08:49:49 -05:00
Philip 3f525ff8c1 Re-order package type generation
This change is just cosmetic and will result in the same packages being
generated.

Temporary fix for #3755.

[ci skip]
2015-08-24 22:23:19 -07:00
Daniel Morsing 5455851ac7 move allocation outside struct + gofmt 2015-08-24 15:28:30 -06:00
Daniel Morsing 35b6c7867d reuse memory buffers for marshaling wal entries
By using preallocated buffers for marshaling WAL entries, we can
reduce the amount of memory we allocate.

On a run of `influx_stress -series 10000 -points 1000` this cuts
total allocations from 18684.15MB to 15200.73MB
2015-08-24 14:49:25 -06:00
Philip O'Toole 6193226ce8 Revert "Merge pull request #3771 from influxdb/tcp_graphite_timeout"
This reverts commit d7f646f7a4, reversing
changes made to d6f9903f10.

Conflicts:
	CHANGELOG.md

Fixes issue #3809
2015-08-24 10:53:14 -07:00
Philip O'Toole 9609d43ab4 Update CHANGELOG for PR 3804 2015-08-24 10:50:55 -07:00
Philip O'Toole 83577baa93 Merge pull request #3804 from KoeSystems/init-script-improvements
init.d script -- fix issue #3803
2015-08-24 10:49:50 -07:00
David Norton 636b4d1603 don't send empty row from ShowMeasurementsExecutor 2015-08-24 13:16:48 -04:00
Daniel Morsing b7bbe8b5e0 remove unused backoffcount field 2015-08-24 10:25:38 -06:00
KoeSystems 64dd2941bd Fix issue #3803 2015-08-24 17:22:21 +01:00
David Norton 88f556af72 convert SHOW MEASUREMENTS to a distributed query 2015-08-23 23:09:51 -04:00