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
Paul Dix
b4b3996a77
Update changelog
2015-03-29 19:08:04 -04:00
Paul Dix
d8aca6029d
Remove logo output on startup and output gomaxprocs setting
2015-03-29 19:01:38 -04:00
Ben Johnson
24db5f23e1
Set GOMAXPROCS.
2015-03-29 15:39:43 -06:00
Ben Johnson
189aaa0d82
Remove debug statements.
2015-03-29 15:36:55 -06:00
Ben Johnson
55768e6973
Merge branch 'master' of https://github.com/influxdb/influxdb into raft-stability
2015-03-29 15:06:09 -06:00
Ben Johnson
27f4a3efec
Fix raft transition and reader edge cases.
2015-03-29 15:04:11 -06:00
Ben Johnson
3d03602fa7
Raft documentation, read from index fix.
2015-03-29 09:08:44 -06:00
Philip O'Toole
caf325969d
Merge pull request #2104 from influxdb/various_fixes
...
Also include NEQ in filters
2015-03-28 10:20:14 -07:00
Philip O'Toole
9016d09743
Update CHANGELOG
2015-03-27 23:07:57 -07:00
Philip O'Toole
3a5baff88d
Avoid multi-line if with a switch
2015-03-27 23:07:57 -07:00
Philip O'Toole
1b700264a7
Also include NEQ in filters
...
This fixes != for field value comparisons.
2015-03-27 23:07:57 -07:00
Philip O'Toole
d6613d7e9d
Update CHANGELOG for PR 2093
2015-03-27 22:43:47 -07:00
Cory LaNou
a4b133c601
Merge pull request #2093 from derailed/BUG_PointPrecision
...
Point Precision not getting marshaled correctly...
2015-03-27 21:10:04 -06:00
Philip O'Toole
eb8513ccab
Merge pull request #2103 from influxdb/various_fixes
...
Add some missing unit tests of parser
2015-03-27 17:08:15 -07:00
Philip O'Toole
272f7f760e
Add unit tests, pass now.
2015-03-27 17:04:46 -07:00
Philip O'Toole
0310b0b73c
Merge pull request #2101 from influxdb/various_fixes
...
SHOW DATABASES returns series name "databases"
2015-03-27 16:43:19 -07:00
Philip O'Toole
a0e9daee63
SHOW DATABASES returns series name "databases"
2015-03-27 16:24:57 -07:00
Philip O'Toole
90807c5bd5
Correct typo in CHANGELOG
2015-03-27 15:32:48 -07:00
Philip O'Toole
6a77a38cf2
Finaly copyedit of client README
2015-03-27 15:29:41 -07:00
Philip O'Toole
790fa5ce69
Update CHANGELOG for PR 2095
2015-03-27 15:21:41 -07:00
Philip O'Toole
221097b1cc
Merge pull request #2095 from derailed/DOC_client
...
Beefed up influx client README
2015-03-27 15:17:11 -07:00
derailed
0519d46132
cleaning up
2015-03-27 14:07:49 -06:00
derailed
a6ac28607b
updated the docs/example based on team feedback + added instructions for auth
2015-03-27 14:01:45 -06:00
Philip O'Toole
0443605619
Merge pull request #2092 from influxdb/get_3_node_online
...
Get 3 node test back online
2015-03-27 11:41:24 -07:00
Philip O'Toole
48e5cdf957
Don't timeout tests for 5 mins up in CirleCI
2015-03-27 11:35:57 -07:00
Philip O'Toole
3e59dac0fb
Allow integration tests to be skipped
2015-03-27 11:28:19 -07:00
Philip O'Toole
8fe4e428a7
Bring 3-node test back online
2015-03-27 10:45:38 -07:00
Philip O'Toole
a23984a840
Allow int tests to query only 1 node
2015-03-27 10:45:38 -07:00
derailed
5eb3e5fc1a
added godoc examples
2015-03-27 11:28:51 -06:00