Commit Graph

11 Commits (933a14e16f0232c5ec883644b7363a59da7bcd90)

Author SHA1 Message Date
Sam Arnold b0d26fe412 chore: add goimports to ci checks 2021-01-29 11:39:42 -05:00
Edd Robinson 0fc7643d59 Fix data race in WAL
This commit fixes a data race in the WAL, which can occur when writes
and deletes are being executed concurrently. The WAL uses a buffer pool
of `[]byte` when reading the WAL. WAL entries are unmarshaled into these
buffers and passed along to the relevant methods handling the different
types of entry (write, delete etc).

In the case of deletes, the keys that need to be deleted were being
stored for later processing, however these keys were part of the backing
array of initial buffer from the pool. As such, those keys could be
written to at a future time when handling other parts of the WAL.
2018-03-15 12:51:30 +00:00
Edd Robinson a27d0d3837 Fix incorrect composites check setting 2016-05-18 14:02:48 +01:00
Todd Persen 594f1a5ead Change todo_lines to fixme_lines in pre-commit hook. 2016-04-29 10:15:13 -07:00
Jason Wilder 9c851f790e Use go1.4.3
Fixes #5283 #5217
2016-01-10 16:43:31 -07:00
Ben Johnson 28b585e639 refactor tsdb query engine
This commit refactors the tsdb query engine to use separate aggregate
and raw execution paths, encapsulates cursor functionality, and removes
the TagSetCursor from the aggregate path. By removing the TagSetCursor,
we can pass sets of unordered values to the map functions and bypass
the `container/heap` entirely.
2015-10-22 09:41:12 -06:00
Cory LaNou 3c3c82cd1c update pre-commit hook for go vet composites 2015-09-16 09:57:46 -05:00
Cory LaNou fd236a7737 commit hook was inaccuratly reporting vet errors due to how we ran vet 2015-02-12 11:17:41 -07:00
Cory LaNou 2c9997d736 better error message 2015-01-13 18:03:40 -07:00
Cory LaNou 62f6ebea8c updating docs and pre-commit hooks for vet 2015-01-13 17:34:06 -07:00
John Shahid 9dac392f26 add a pre-commit hook 2014-06-23 13:25:59 -04:00