Callum Styan
8326e410d0
decouple tsdb main.go (and tests) from prometheus/pkg
7 years ago
Callum Styan
df7cc4dff5
remove Nil/NotNil functions
7 years ago
Callum Styan
ff0b0ac4b6
use test utils in chunk_test
7 years ago
Callum Styan
2ad78b3e51
use test utils in buffer_test
7 years ago
Callum Styan
ef99a94ffe
use test utils in labels_test
7 years ago
Callum Styan
e68ff0caec
use test utils in postings_test
7 years ago
Callum Styan
ca4e817372
move test utils to it's own package so we can use it in tests for other packages in tsdb repo
7 years ago
Callum Styan
fa26e2b6c3
use test utils in compact_test
7 years ago
Callum Styan
945b6b01aa
use test utils in index_test
7 years ago
Callum Styan
a1a91ea96a
use test utils in querier_test
7 years ago
Callum Styan
6c8bbf3f61
use test utils in wal_test
7 years ago
Callum Styan
76417b9b2a
use test utils in tombstone_tests
7 years ago
Callum Styan
5aa2af255b
use test utils in head_test
7 years ago
Callum Styan
ae8bb5fd16
add Nil and NotNil to test utils
7 years ago
Callum Styan
31c420088b
use test utils in chunks_test
7 years ago
Callum Styan
670c2917e2
use test utils in db_test
7 years ago
Goutham Veeramachaneni
30bbbe34f8
Merge pull request #210 from Gouthamve/tomb-clean
...
Add a function to cleanup tombstones.
7 years ago
Goutham Veeramachaneni
981e504bd7
Merge pull request #209 from Gouthamve/fix-dels
...
Partial chunk deletions are not compacted away
7 years ago
Goutham Veeramachaneni
f35e9c7fec
Merge branch 'master' into fix-dels
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Goutham Veeramachaneni
8a5ea9db74
Merge branch 'master' into tomb-clean
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Goutham Veeramachaneni
24ff293dc9
Merge pull request #207 from Gouthamve/compact-fail
...
Don't retry failed compactions.
7 years ago
Fabian Reinartz
df4657bcc5
Merge pull request #216 from prometheus/sortedPostings
...
Order postings lists in index file by key
7 years ago
Fabian Reinartz
cf7f6108fd
Order postings lists in index file by key
...
Aligning postings list for similar keys close to each other improves
page cache hit rates in typical queries that select postings for
multiple label pairs with the same name.
7 years ago
Goutham Veeramachaneni
e7445d00b0
Add a function to cleanup tombstones.
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Fabian Reinartz
ad3c4849a9
Merge pull request #212 from prometheus/fabxc
...
Cleanup, small refactoring, expose a few things
7 years ago
Goutham Veeramachaneni
17dd4f8f6c
Merge pull request #213 from Gouthamve/close-retention-blocks
...
Close the retention blocks before deleting them.
7 years ago
Goutham Veeramachaneni
41fd9c66ef
Close the retention blocks before deleting them.
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Fabian Reinartz
684be3f35e
Merge pull request #206 from prometheus/typez
...
Add explicit error to Querier.Select
7 years ago
Goutham Veeramachaneni
1fc94a02d1
Don't retry failed compactions.
...
Fixes prometheus/prometheus#3487
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Goutham Veeramachaneni
1627a47640
A copy is being assigned newChunk not the original
...
Signed-off-by: Goutham Veeramachaneni <cs14btech11014@iith.ac.in>
7 years ago
Fabian Reinartz
a031cf7424
Return ULID in Compactor
7 years ago
Goutham Veeramachaneni
a00d700d48
Merge pull request #200 from jaxi/build_on_smartos
...
Ensure tsdb can be built on SmartOS/Illumos/Solaris
7 years ago
Fabian Reinartz
f1512a368a
Expose ChunkSeriesSet and lookups methods.
7 years ago
Fabian Reinartz
3ef4326114
Refactor tombstone reader types
7 years ago
Fabian Reinartz
e5ce2bef43
Add explicit error to Querier.Select
...
This has been a frequent source of debugging pain since errors are
potentially delayed to a much later point. They bubble up in an
unrelated execution path.
7 years ago
Goutham Veeramachaneni
032413caf0
Merge pull request #205 from opsnull/master
...
fix typing
7 years ago
zhangjun3
65e6b79a7c
fix typing
7 years ago
Julius Volz
9703325901
Merge pull request #204 from prometheus/fix-wal-closing
...
Close WAL when closing the DB
7 years ago
Julius Volz
1dad3370fd
Close WAL when closing the DB
...
Also, the `wal` field of the `DB` was not used anywhere, so this removes
it.
7 years ago
Fabian Reinartz
1d08a00d63
Merge pull request #203 from prometheus/absbytes
...
Generalize index and chunk readers
7 years ago
Fabian Reinartz
ac5bd71d8f
Doc fixes
7 years ago
Fabian Reinartz
d578b10d5c
chunk: make reader accept abstract ByteSlice
7 years ago
Fabian Reinartz
b7c3cfecbf
index: abstract ByteSlice and adjust indexReader
...
This replaces the builtin byte slice with an interface for the index
reader. This allows the complex decoding of the index file format
to be used against more generalized implementations.
7 years ago
Fabian Reinartz
c354d6bd59
index: simplify checksum validation
7 years ago
Fabian Reinartz
798f2bdb0a
Merge pull request #189 from sunhay/checksum-checks
...
Index checksum validation on reads
7 years ago
Fabian Reinartz
b4d093a8a7
Merge pull request #201 from prometheus/grobie/fix-typo-in-metric
...
Fix typo in prometheus_tsdb_reloads_failures_total description
7 years ago
Tobias Schmidt
5170198276
Fix typo in prometheus_tsdb_reloads_failures_total description
7 years ago
Jingkai He
bfadf72d3f
Ensure tsdb can be built on SmartOS/Illumos/Solaris
...
At the moment tsdb cannot be built on Illumos/Solaris due to
- An exclude tag against Solaris is added in db_unix.go
- We use built-in syscall package, which doesn't have nmmap and munmap support
This PR supports build on Illumos/Solaris by remove the Solaris exclude tag in db_unix.go
At the same time use golang.org/x/sys/unix package instead of syscall package, since it has Solaris nmmap and munmap implementation.
7 years ago
Fabian Reinartz
1bacdf8e33
Merge pull request #198 from dswarbrick/master
...
Use Go 1.9 math/bits funcs for counting leading / trailing zeros
7 years ago
Daniel Swarbrick
57cefba0d5
Move to Go 1.9
7 years ago