Commit Graph

4841 Commits (7e58f9827ef9dab32893d9922c36c507e8e91a36)

Author SHA1 Message Date
Ben Johnson 3d6d5f7dd7 Merge branch 'master' into ignore-metastore-replay
Conflicts:
	CHANGELOG.md
2015-04-02 14:46:06 -06:00
Ben Johnson c24f55b9ea Ignore replayed commands on the metastore.
This commit changes the metastore to ignore any commands that are replayed
against it. This is typically handled by the messaging.Conn but there's no
sense in panicing in the metastore if a replayed message comes through.
2015-04-02 14:43:25 -06:00
Philip O'Toole 889694bf8c Merge pull request #2153 from influxdb/two_point_test
Add two query unit tests
2015-04-02 11:46:30 -07:00
Philip O'Toole 7b720b6169 Unit-test two queries in a single request 2015-04-02 11:38:39 -07:00
Philip O'Toole 8a9f8d0eda Add simple test that results in entries in values 2015-04-02 11:36:02 -07:00
Jason Wilder ea7fe9b3d5 Merge pull request #2128 from influxdb/broker-discovery
Broker discovery
2015-04-02 12:28:35 -06:00
Jason Wilder cf9e0b22d7 Add #2128 to CHANGELOG 2015-04-02 11:27:59 -06:00
Jason Wilder 64f6900ce2 Change 1000ms to 1s 2015-04-02 11:27:59 -06:00
Jason Wilder 91fb7e3756 Track data node urls on brokers
This sends data node urls via the broker heartbeat from each data
node.  The urls are tracked on the broker to support simpler
cluster setup as well as distributed queries.
2015-04-02 11:27:53 -06:00
Jason Wilder 0af6d1006d Move RestoreCommandTest to integration tests 2015-04-02 10:22:28 -06:00
Cory LaNou 734e57acb5 Merge pull request #2147 from influxdb/set-max-procs-better-location
Set Go Max procs in a better location
2015-04-02 10:42:50 -05:00
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