Ganesh Vernekar
e50fdbc70c
Live m-mapping of chunks on disk ( #6830 )
...
* Live m-mapping of chunks on disk
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* Fix review comments
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* Fix review comments Part 2
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* Fix review comments Part 3
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* Fix review comments Part 4
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
* Attempt to fix windows bug
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2020-03-19 22:03:44 +05:30
Ganesh Vernekar
0a27df92f0
Refactor tsdb/chunks/chunks.go for future PRs ( #6754 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2020-02-05 19:09:40 +05:30
Bartlomiej Plotka
3b8ef6386c
Fixed race in Chunks method. ( #6515 )
...
Added regression test.
Fixes #6512
Before (not deterministic result due to concurrency):
```
=== RUN TestChunkReader_ConcurrentRead
--- FAIL: TestChunkReader_ConcurrentRead (0.01s)
db_test.go:2702: unexpected error: checksum mismatch expected:597ad276, actual:597ad276
db_test.go:2702: unexpected error: checksum mismatch expected:dd0cdbc2, actual:dd0cdbc2
FAIL
```
After succuess on multiple runs.
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
2019-12-24 22:55:22 +01:00
Krasimir Georgiev
549164f252
return err instead of panic for corrupted chunk ( #6040 )
...
* Fix tsdb panic when querying corrupted chunks.
check that the chunk segment has enough data to read all chunk pieces.
* refactor, simplify and add tests.
* simpfiy WriteChunks implementation
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
2019-12-04 09:37:49 +02:00
Bartek Plotka
f0863a604e
Removed extra tsdb/testutil after merge.
...
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
2019-08-14 10:12:32 +01:00
Ganesh Vernekar
5ecef3542d
Cleanup after merging tsdb into prometheus
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2019-08-13 14:04:14 +05:30
Ganesh Vernekar
7cf09b0395
Moving tsdb into its own subdirectory
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2019-08-13 13:58:49 +05:30