Fabian Reinartz
da068500c6
Swap len and encoding fields in chunk entry
2017-04-30 10:10:18 +02:00
Fabian Reinartz
df96d97dab
Move chunk checksum
2017-04-30 10:10:18 +02:00
Fabian Reinartz
db4272b849
docs: add index file format
2017-04-30 10:10:18 +02:00
Fabian Reinartz
d8b91b969c
docs: add chunk file format
2017-04-30 10:10:18 +02:00
Fabian Reinartz
cdfb604d89
Merge pull request #64 from prometheus/dbref
...
Fix and test ref handling in DB appender
2017-04-28 16:08:00 +02:00
Fabian Reinartz
5b3cb11f3d
Merge pull request #65 from prometheus/comment-fixes
...
Minor comment fixes and additions.
2017-04-28 16:07:16 +02:00
Fabian Reinartz
2c46815adb
Merge pull request #66 from prometheus/fix-meta-error-handling
...
Fix closing of meta file if meta encoding failed
2017-04-28 16:06:42 +02:00
Fabian Reinartz
b07a87768a
Merge pull request #67 from prometheus/remove-skiplist
...
Remove unused skiplist types
2017-04-28 16:06:01 +02:00
Julius Volz
006f5d6b22
Merge pull request #68 from prometheus/simplify-equals
...
Simplify Labels.Equals()
2017-04-28 09:05:35 -05:00
Fabian Reinartz
b098c36d27
Merge pull request #69 from prometheus/fix-finalize-tail-errhandling
...
Add missing error handling for finalizeTail() call
2017-04-28 16:05:19 +02:00
Julius Volz
a25f874ec4
Simplify Labels.Equals()
...
Also extend the Compare() tests to also test Labels.Equals().
2017-04-28 16:01:37 +02:00
Julius Volz
9a3d857d8b
Add missing error handling for finalizeTail() call
2017-04-28 15:59:23 +02:00
Julius Volz
e374db22bc
Remove unused skiplist types
2017-04-28 15:57:01 +02:00
Julius Volz
94f1ac599e
Fix closing of meta file if meta encoding failed
2017-04-28 15:45:30 +02:00
Julius Volz
8d1fb4fa01
Minor comment fixes and additions.
2017-04-28 15:41:42 +02:00
Fabian Reinartz
54a7b98cff
Fix and test ref handling in DB appender
2017-04-28 15:24:28 +02:00
Tomasz Elendt
d7ad9d2679
Fix various postings implementations
...
* newIntersectPostings and newMergePostings should not advance passed
postings automatically.
* listPostings and bigEndianPostings should not panic with index out
of range when At() is called before Next()/Seek().
* Seek() call should advance listPostings/bigEndianPostings.
2017-04-24 23:07:06 +02:00
Fabian Reinartz
a5322c50fc
Merge pull request #36 from Gouthamve/tests
...
Tests For Querier and Postings
2017-04-24 10:50:59 +02:00
Goutham Veeramachaneni
6178de9acc
Removed unused feild
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-22 01:43:18 +05:30
Goutham Veeramachaneni
725b69caa1
Incorporate feedback on #36
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-22 01:38:26 +05:30
Fabian Reinartz
dc0fb2b585
Merge pull request #54 from prometheus/query-test
...
Test we get back out the data we put in.
2017-04-21 15:15:55 +02:00
Brian Brazil
2742fc380b
Test we get back out the data we put in.
...
This also adds a utility that'll aid future tests.
2017-04-21 14:10:14 +01:00
Fabian Reinartz
2fcdd1a5cb
Merge pull request #53 from prometheus/atomicity
...
Remove dead code.
2017-04-20 16:41:32 +02:00
Brian Brazil
0e1f72dca6
Merge pull request #55 from prometheus/branch-hack
...
Hack to workaround dependency on non-master code.
2017-04-20 15:18:09 +01:00
Brian Brazil
1d83746cc5
Hack to workaround dependency on non-master code.
2017-04-20 14:47:08 +01:00
Brian Brazil
72443bddfc
Remove dead code.
2017-04-20 13:45:07 +01:00
Brian Brazil
d04bd947ea
Merge pull request #51 from prometheus/rollback
...
Make rollback actually rollback.
2017-04-19 11:29:03 +01:00
Brian Brazil
dba222b53c
Make rollback actually rollback.
...
Also add tests for basic commit/rollback
functionality.
Fixes #39
2017-04-19 11:28:36 +01:00
Fabian Reinartz
46c947d94f
Merge pull request #45 from mattbostock/document_appender_not_goroutine_safe
...
db: Add comment: Appender not goroutine safe
2017-04-17 12:12:20 +02:00
Fabian Reinartz
72dd055cde
Merge pull request #46 from mattbostock/patch-1
...
db: Fix typo: reference
2017-04-17 12:12:06 +02:00
Matt Bostock
4d5ca4b9c1
db: Fix typo: reference
2017-04-14 22:02:06 +01:00
Matt Bostock
3dd5a4ee09
db: Add comment: Appender not goroutine safe
2017-04-14 21:39:08 +01:00
Goutham Veeramachaneni
239f8b9eb5
Modify tests to check for mint, maxt
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-14 00:37:21 +05:30
Goutham Veeramachaneni
b60c2068bc
Make blockQuerier return data in valid time-range
...
Fixes #43
Added mint, maxt to chunkSeriesIterator. Adding a field there is
inevitable as something similar is required for ignoring deleted
time-ranges.
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-14 00:36:14 +05:30
Goutham Veeramachaneni
b9868c9f0b
Initial test for blockQuerier
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-13 19:57:31 +05:30
Fabian Reinartz
25d4546518
Merge pull request #42 from prometheus/amend-nan
...
When checking for amended points, do it in terms of bits.
2017-04-13 08:53:02 +02:00
Brian Brazil
bceb5c1b16
When checking for amended points, do it in terms of bits.
...
NaN != NaN, so the previous code would incorrectly report
it as changed.
There's also plans to take advantage of the NaN payload,
so look at the entire value.
2017-04-12 16:25:32 +01:00
Fabian Reinartz
3a2f6ee305
Add license file
2017-04-10 21:02:42 +02:00
Fabian Reinartz
778103b450
Add liecence file and headers
2017-04-10 20:59:45 +02:00
Fabian Reinartz
875e2dcb1e
Add README
2017-04-10 13:29:46 +02:00
Goutham Veeramachaneni
0c5c4f07c5
Test "Stitching" SeriesIterators
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-09 19:45:22 +05:30
Goutham Veeramachaneni
f8a8b77976
postings: Fix bad test and revert changed logic
...
A bad test was introduced a couple of commits ago which also made
changes to pass the bad test. Fixed the test and revert the changes.
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-09 17:20:39 +05:30
Fabian Reinartz
721df536eb
Activate Travis CI
2017-04-09 10:18:19 +02:00
Goutham Veeramachaneni
86929ed090
Added Test For indexReader.LabelValues
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-08 21:12:04 +05:30
Goutham Veeramachaneni
329dc1fa6c
Add Tests For mergedPostings.Seek
...
* Renamed mergedPostings to make it consistent across the repo
* Fixed bug with Seek
* Added Tests for Seek
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-08 20:42:29 +05:30
Fabian Reinartz
c73a397da2
Adjust maximum samples per chunk.
2017-04-07 10:58:37 +02:00
Goutham Veeramachaneni
a51b2666d7
Fix Panic When Accessing Uncut memorySeries
...
When calling AddFast, we check the details of the head chunk of the
referred memorySeries. But it could happen that there are no chunks in
the series at all.
Currently, we are deferring chunk creation to when we actually append
samples, but we can be sure that there will be samples if the series is
created. We will be consuming no extra memory by cutting a chunk when we
create the series.
Ref: #28 comment 2
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
2017-04-06 00:22:31 +05:30
Fabian Reinartz
7de2217011
Add fast-path for equality matching
2017-04-05 15:37:48 +02:00
Fabian Reinartz
1579e12011
Add cross-platform mmap
2017-04-04 16:54:48 +02:00
Fabian Reinartz
10c7c9acbe
Adjust import names to new repository organisation
2017-04-04 11:27:26 +02:00