Commit Graph

8440 Commits (90ea3fc4ad8e94512ada1f3a6bd8e6082fdbc330)

Author SHA1 Message Date
Philip O'Toole 2780bdfd78 Update CHANGELOG 2015-10-08 18:23:15 -07:00
Philip O'Toole 5b0a8ed306 HH should not process dropped nodes 2015-10-08 18:23:12 -07:00
Ben Johnson 7a960fd416 Merge pull request #4374 from benbjohnson/tsm1-quick
Add tsm1 quickcheck tests
2015-10-08 12:10:35 -06:00
Ben Johnson 2b3bb5336d add tsm1 quickcheck tests 2015-10-08 11:59:57 -06:00
Jason Wilder 97ec7899b2 Merge pull request #4373 from influxdb/jw-int-panic
Fix index out of bounds panic in int64Decoder
2015-10-08 11:46:22 -06:00
Philip O'Toole 6bd3b5e63b Merge pull request #4372 from influxdb/graphite-merge-error
Fix graphite parser merge error, nargs
2015-10-08 10:24:41 -07:00
Jason Wilder 79185fc1dc Fix index out of bounds panic in int64Decoder
Code was missing a check for when we did not have anymore bytes to decode
so it panic when we tried to decode the empty slice.
2015-10-08 11:21:19 -06:00
Cameron Sparr 2add55107e Fix graphite parser merge error, nargs 2015-10-08 11:15:03 -06:00
dgnorton a9bf213076 Merge pull request #3484 from dawbs/dawbs-fix-3429
Bugfix for #3429 String representations of RegexLiterals generated in…
2015-10-08 13:12:10 -04:00
Cameron Sparr 6bfb1ff11b Merge branch 'roobert-graphite-template-custom-field'
Closes #4178
2015-10-08 10:59:00 -06:00
Cameron Sparr 3bea25b428 graphite parser: apply tags from the Parser on the template 2015-10-08 10:56:13 -06:00
Philip O'Toole 32d1ca7434 Tweak nightly build race-enabled builds
[ci skip]
2015-10-08 10:56:13 -06:00
Philip O'Toole 04c3af45cd Nightly script can now enable race-detection 2015-10-08 10:56:13 -06:00
Philip O'Toole 103242db91 Support building race-enabled packages
This will allow testing to run without need to perform special builds,
simply download and install the race-detection-enabled package.
2015-10-08 10:56:13 -06:00
Nathaniel Cook 49f6765d63 make client.Write default to c.precision if none is given 2015-10-08 10:56:13 -06:00
Jason Wilder 5b4f46284f Fix similar float values encoding overflow
If similar float values were encoded, the number of leading bits would
overflow the 5 available bits to store them (e.g. store 33 in 5 bits).  When
decoding, the values after the overflowed value would spike to very large and
small values.

To prevent the overflow, we clamp the value to 31 which is the maximum
number of leading zero bits we can encoded.

Fixes #4357
2015-10-08 10:56:13 -06:00
Philip O'Toole b5496d2177 Update CHANGELOG for PR4354
[ci skip]
2015-10-08 10:56:13 -06:00
Samer Kanjo ecb8d90f59 #4098 Lint the influxdb package 2015-10-08 10:56:13 -06:00
Samer Kanjo a3a3fa4f2c Complete lint of project root. 2015-10-08 10:56:13 -06:00
Nick Dawbarn 136dbef0e7 Formatting fixes 2015-10-08 19:41:36 +10:00
Nick Dawbarn 26f6d00668 Bugfix for #3429 String representations of RegexLiterals generated in influxql/ast.go add the / char as a start and end delimiter, but does not escape any / characters that may exist with the regex 2015-10-08 19:41:36 +10:00
Cameron Sparr 73a630dfa6 graphite parser: apply tags from the Parser on the template 2015-10-07 23:19:29 -06:00
Philip O'Toole 64cef0fa63 Tweak nightly build race-enabled builds
[ci skip]
2015-10-07 22:16:17 -07:00
Philip O'Toole abb6092bfe Nightly script can now enable race-detection 2015-10-07 22:12:34 -07:00
Philip O'Toole 880f55565e Support building race-enabled packages
This will allow testing to run without need to perform special builds,
simply download and install the race-detection-enabled package.
2015-10-07 22:09:30 -07:00
Nathaniel Cook 4c64c79f3d Merge pull request #4361 from influxdb/client_default_precision
make client.Write default to c.precision if none is given
2015-10-07 16:37:26 -06:00
Nathaniel Cook ac5bd8a6c2 make client.Write default to c.precision if none is given 2015-10-07 15:36:09 -06:00
Jason Wilder 93f15128f3 Merge pull request #4362 from influxdb/jw-4357
Fix similar float values encoding overflow
2015-10-07 15:23:46 -06:00
Jason Wilder b3343a6d2a Fix similar float values encoding overflow
If similar float values were encoded, the number of leading bits would
overflow the 5 available bits to store them (e.g. store 33 in 5 bits).  When
decoding, the values after the overflowed value would spike to very large and
small values.

To prevent the overflow, we clamp the value to 31 which is the maximum
number of leading zero bits we can encoded.

Fixes #4357
2015-10-07 15:05:56 -06:00
Rob Wilson f3e3bf7a0e typo 2015-10-07 21:25:49 +01:00
Rob Wilson 5815e0b0ee updated documentation 2015-10-07 21:24:05 +01:00
Rob Wilson d8ac746703 correct formatting 2015-10-07 20:35:05 +01:00
Rob Wilson 5fd8777c56 add tests 2015-10-07 20:32:10 +01:00
Rob Wilson a27186fb7a raise exception when field keyword is specified multiple times 2015-10-07 20:31:46 +01:00
Philip O'Toole 7757b9b9db Update CHANGELOG for PR4354
[ci skip]
2015-10-07 11:31:03 -07:00
Philip O'Toole ad43b853fb Merge pull request #4340 from skanjo/lint-root
Complete lint of project root.
2015-10-07 11:16:44 -07:00
Rob Wilson bcd6c06173 Merge remote-tracking branch 'upstream/master' into graphite-template-custom-field
Conflicts:
	services/graphite/parser.go
2015-10-07 17:48:34 +01:00
Philip O'Toole 889fd58fbf Merge pull request #4353 from influxdb/hh_file_thrashing
Fully lock adding node queues during hinted handoff
2015-10-07 09:25:08 -07:00
Samer Kanjo e2df4756cf #4098 Lint the influxdb package 2015-10-07 08:38:30 -05:00
Philip O'Toole 44d52ac138 Fully lock HH node queue creation
I believe this change address the issues with hinted-handoff not fully replicating all data to nodes that come back online after an outage.. A detailed explanation follows.

During testing of of hinted-handoff (HH) under various scenarios, HH stats showed that the HH Processor was occasionally encountering errors while unmarshalling hinted data. This error was not handled completely correctly, and in clusters with more than 3 nodes, this could cause the HH service to stall until the node was restarted. This was the high-level reason why HH data was not being replicated.

Furthermore by watching, at the byte-level, the hinted-handoff data it could be seen that HH segment block lengths were getting randomly set to 0, but the block data itself was fine (Block data contains hinted writes). This was the root cause of the unmarshalling errors outlined above. This, in turn, was tracked down to the HH system opening each segment file multiple times concurrently, which was not file-level thread-safe, so these mutiple open calls were corrupting the file.

Finally, the reason a segment file was being opened multiple times in parallel was because WriteShard on the HH Processor was checking for node queues in an unsafe manner. Since WriteShard can be called concurrently this was adding queues for the same node more than once, and each queue-addition results in opening segment files.

This change fixes the locking in WriteShard such the check for an existing HH queue for a given node is performed in a synchronized manner.
2015-10-07 02:33:43 -07:00
Philip O'Toole fb83158f38 Merge pull request #4349 from influxdb/continue_on_unmarshal
If HH can't unmarshal a block, skip that block
2015-10-07 02:03:08 -07:00
Philip O'Toole 5b0767c30b EOF is OK in HH processor 2015-10-07 01:56:55 -07:00
Philip O'Toole 8b49c37120 Count HH errors 2015-10-06 20:49:40 -07:00
Philip O'Toole 5d5515a497 If HH can't unmarshal a block, skip that block 2015-10-06 20:49:40 -07:00
Philip O'Toole 6f80d690dd Update CHANGELOG for PR4342
[ci skip]
2015-10-06 20:26:37 -07:00
Philip O'Toole 11675df981 Merge pull request #4342 from kostya-sh/4325_ast-bug
Fix aggregates validation in presence of arithmetic expressions
2015-10-06 20:25:11 -07:00
Cameron Sparr 883d32cfd0 Add public function to graphite parser to apply template 2015-10-06 17:42:36 -06:00
Michael Desa 897a5effff Merge pull request #4329 from influxdb/md-stress-timestamps
Add support for evenly spaced timestamps
2015-10-06 16:26:08 -07:00
Nathaniel Cook 6f1a44bd07 Merge pull request #4345 from influxdb/remove_iterator
tsdb.Iterator is no longer used. Removing
2015-10-06 17:00:50 -06:00
Paul Dix f041939a1c Merge pull request #4308 from influxdb/pd-storage-engine
The TSM storage engine
2015-10-06 15:54:56 -07:00