Commit Graph

4930 Commits (af682069b885a41d1628df4031a3eac09e7b2243)

Author SHA1 Message Date
Cory LaNou 013e95e33c Merge branch 'set-max-procs-better-location' of github.com:influxdb/influxdb into set-max-procs-better-location 2015-04-02 10:31:33 -05:00
Cory LaNou 8fa3571782 only need max procs for running 2015-04-02 10:27:35 -05:00
Cory LaNou 40a97d46f2 Update CHANGELOG.md 2015-04-02 10:05:39 -05:00
Cory LaNou e7866d3600 Set Go Max procs in a better location 2015-04-02 09:33:09 -05:00
Todd Persen bdd469db26 Update CHANGELOG.md 2015-04-01 21:11:43 -07:00
Cory LaNou d29a77ea65 Merge pull request #2145 from influxdb/fix-toml-duration
Encode toml durations correctly
2015-04-01 21:00:50 -05:00
Cory LaNou 176e05eb9a update changelog 2015-04-01 20:54:34 -05:00
Cory LaNou ccf9428836 update changelog 2015-04-01 20:43:14 -05:00
Cory LaNou 87c3c46208 encode toml durations correctly 2015-04-01 20:20:04 -05:00
Ben Johnson f99d582c4a Merge pull request #2143 from influxdb/raft
Add raft term logging.
2015-04-01 16:19:48 -06:00
Ben Johnson bc444821b9 Add raft term logging. 2015-04-01 15:42:16 -06:00
Todd Persen b60a98f613 Update CHANGELOG.md 2015-03-31 23:15:21 -07:00
dgnorton ab62c5b28f Merge pull request #2136 from influxdb/more_write_performance
use map for marshaledTags cache
2015-04-01 01:01:45 -04:00
David Norton 63346cdcdd minor style change 2015-03-31 23:49:54 -04:00
David Norton 53b6be1547 use map for marshaledTags cache 2015-03-31 23:08:09 -04:00
Philip O'Toole 23fe82e8ee Merge pull request #2134 from juliusv/fix-lint-warnings
Fix all lint errors in "admin" and "collectd" packages.
2015-03-31 18:58:29 -07:00
Julius Volz c919240d93 Fix all lint errors in "admin" and "collectd" packages.
admin/admin.go:10:2: a blank import should be only in a main or test package, or have a comment justifying it
    admin/admin.go:13:6: exported type Server should have comment or be unexported
    admin/admin.go:19:1: comment on exported function NewServer should be of the form "NewServer ..."
    admin/admin.go:24:1: exported method Server.ListenAndServe should have comment or be unexported
    admin/admin.go:44:1: exported method Server.Close should have comment or be unexported

    collectd/collectd.go:23:6: exported type Server should have comment or be unexported
    collectd/collectd.go:35:1: exported function NewServer should have comment or be unexported
    collectd/collectd.go:46:1: exported function ListenAndServe should have comment or be unexported
    collectd/collectd.go:145:1: exported function Unmarshal should have comment or be unexported
2015-04-01 03:37:31 +02:00
Philip O'Toole 4a37776cad Merge pull request #2132 from influxdb/fix_tag_neq
Remove redundant if condition
2015-03-31 16:49:36 -07:00
Philip O'Toole aaecda0c8e Remove redundant if condition 2015-03-31 16:38:48 -07:00
Todd Persen 1b6d185628 Merge pull request #2130 from influxdb/fix_mucho_marshaling
make fewer calls to marshalTags
2015-03-31 16:25:08 -07:00
Philip O'Toole 3eb0b048e7 Merge pull request #2105 from influxdb/fix_tag_neq
Fix tag NEQ
2015-03-31 16:23:01 -07:00
David Norton 40245dade5 don't export marshaledTags field 2015-03-31 19:18:51 -04:00
Philip O'Toole a7d904778a Correctly filter series for NEQREGEX
Series that do not have any tags are considered matching in the NEQREGEX
case so the must be explicitly added.
2015-03-31 16:14:30 -07:00
Philip O'Toole 60149cf7b5 Unit test EQ and NEQ tag query 2015-03-31 16:14:30 -07:00
Philip O'Toole 26b2a2662c Add unit test showing issue #1604 is fixed 2015-03-31 16:14:30 -07:00
Philip O'Toole 70d57d399d Check if the tag filter is a NOT
If so, then return all series IDs which do not match.

Fix for issue #2097
2015-03-31 16:14:30 -07:00
Todd Persen ef409d6016 Update CHANGELOG.md 2015-03-31 16:13:33 -07:00
Ben Johnson 58cd43d425 Merge pull request #2131 from influxdb/marshalTags
Optimize marshalTags()
2015-03-31 17:07:56 -06:00
David Norton bb7aa9243b make less calls to marshalTags 2015-03-31 18:57:38 -04:00
Ben Johnson 04a475cdb2 Optimize marshalTags().
This commit optimizes the marshaling of tag sets. Previously the
strings.Join() function was used with added a lot of memory allocations.
The new implementation manually allocates and appends to a byte slice.

Previous implementation:

$ go test -run=^\$ -bench=BenchmarkMarshalTags -v
PASS
BenchmarkMarshalTags_KeyN1	 2000000	       824 ns/op	     176 B/op	       6 allocs/op
BenchmarkMarshalTags_KeyN3	 1000000	      1319 ns/op	     416 B/op	       6 allocs/op
BenchmarkMarshalTags_KeyN5	 1000000	      2173 ns/op	     656 B/op	       6 allocs/op
BenchmarkMarshalTags_KeyN10	  500000	      3929 ns/op	    1280 B/op	       6 allocs/op

New implementation:

$ go test -run=^\$ -bench=BenchmarkMarshalTags -v
PASS
BenchmarkMarshalTags_KeyN1	 3000000	       458 ns/op	      80 B/op	       3 allocs/op
BenchmarkMarshalTags_KeyN3	 2000000	       753 ns/op	     160 B/op	       3 allocs/op
BenchmarkMarshalTags_KeyN5	 1000000	      1193 ns/op	     240 B/op	       3 allocs/op
BenchmarkMarshalTags_KeyN10	  500000	      2477 ns/op	     448 B/op	       3 allocs/op
2015-03-31 16:55:42 -06:00
Todd Persen 94a4baf34e Merge pull request #2117 from mattrobenolt/uuid
Replace code.google.com/p/go-uuid with TimeUUID from gocql
2015-03-30 19:32:32 -07:00
Philip O'Toole 88b0e8a50b Merge pull request #2123 from juliusv/fix-lint-warnings
Fix all "golint" warnings in top-level package.
2015-03-30 17:29:39 -07:00
Julius Volz 690f6f16c0 Fix all "golint" warnings in top-level package.
This fixes all "golint" warnings in the top-level "influxdb" package:

    database.go:316:2: can probably use "var tagStrings []string" instead
    database.go:1077:6: exported type RetentionPolicies should have comment or be unexported
    server.go:337:1: exported method Server.StartSelfMonitoring should have comment or be unexported
    server.go:345:3: can probably use "var points []Point" instead
    server.go:433:2: can probably use "var groups []group" instead
    server.go:498:2: can probably use "var groups []group" instead
    server.go:1417:1: comment on exported method Server.CreateRetentionPolicyIfNotExists should be of the form "CreateRetentionPolicyIfNotExists ..."
    server.go:1899:1: exported method Server.DropMeasurement should have comment or be unexported
    server.go:2153:10: if block ends with a return statement, so drop this else and outdent its block
    server.go:2695:2: can probably use "var rows []*influxql.Row" instead
    server.go:2876:11: if block ends with a return statement, so drop this else and outdent its block
    server.go:3804:1: exported method Server.StartReportingLoop should have comment or be unexported
    tx.go:133:4: can probably use "var mappers []influxql.Mapper" instead
    tx.go:231:1: exported method LocalMapper.Open should have comment or be unexported
    tx.go:254:1: exported method LocalMapper.Close should have comment or be unexported
    tx.go:348:1: exported method LocalMapper.Next should have comment or be unexported
2015-03-31 02:22:45 +02:00
Philip O'Toole 01443e9e42 Merge pull request #2122 from influxdb/time_parsing_tests
Add simple WHERE time > absolute value test
2015-03-30 16:42:36 -07:00
Philip O'Toole 1219ba7b93 Add simple WHERE time > absolute value test 2015-03-30 16:37:25 -07:00
Philip O'Toole f24b6b9a7c Merge pull request #2100 from influxdb/enable_race_detection
Enable race detection
2015-03-30 14:37:17 -07:00
Philip O'Toole a755c91b56 Synchronize access to shard index 2015-03-30 13:50:17 -07:00
Philip O'Toole 6b5a452f8a Use a channel to sync UDP shutdown 2015-03-30 13:49:55 -07:00
Philip O'Toole c326a9c9c9 Fix race condition in Raft unit test 2015-03-30 11:53:27 -07:00
Philip O'Toole 695f25b1b0 Re-run test suite with -race
This is done so the test suite runs without any overhead of race
detection, in case the speed change would hide any issues.
2015-03-30 11:35:24 -07:00
Philip O'Toole c533273856 Run 'go vet' first since it's faster to finish 2015-03-30 11:35:24 -07:00
Matt Robenolt 62434fb878 Replace code.google.com/p/go-uuid with TimeUUID from gocql 2015-03-30 09:02:11 -07:00
Ben Johnson 947c776dc8 Fix comments. 2015-03-30 08:13:13 -06:00
Todd Persen 710f7130b6 Update CHANGELOG.md 2015-03-30 01:07:18 -07:00
Todd Persen eb53d586db Update CHANGELOG.md 2015-03-30 01:06:50 -07:00
Philip O'Toole 97b385ca61 Merge pull request #2114 from influxdb/fix_stderr_stdout
Direct STDERR and STDOUR and remove obsolete 'run'
2015-03-29 19:53:52 -07:00
Philip O'Toole 8970efeac2 Direct STDERR and STDOUR and remove obsolete 'run'
This code path was not modified as needed during recent init.d script
work.
2015-03-29 16:37:31 -07:00
Paul Dix 8dfd93582f Update CHANGELOG.md 2015-03-29 19:15:21 -04:00
Paul Dix cfeee629bb Merge pull request #2111 from influxdb/raft-stability
Raft stability
2015-03-29 19:08:35 -04:00
Paul Dix 5d905b91b2 Merge pull request #2112 from influxdb/gomaxprocs
Set GOMAXPROCS.
2015-03-29 19:08:17 -04:00