mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 09:02:53 +00:00
changelog
Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
This commit is contained in:
parent
fced260a24
commit
db127a60e0
@ -1,6 +1,6 @@
|
|||||||
## master / unreleased
|
## master / unreleased
|
||||||
- [CHANGE] `NewLeveledCompactor` takes a context so that a compaction is canceled when closing the db.
|
- [CHANGE] `NewLeveledCompactor` takes a context so that a compaction is canceled when closing the db.
|
||||||
|
- [ENHANCEMENT] When closing the db any running compaction will be cancelled so it doesn't block.
|
||||||
|
|
||||||
## 0.3.0
|
## 0.3.0
|
||||||
|
|
||||||
|
@ -775,6 +775,6 @@ func TestCancelCompactions(t *testing.T) {
|
|||||||
start := time.Now()
|
start := time.Now()
|
||||||
<-dbClosed
|
<-dbClosed
|
||||||
actT := time.Since(start)
|
actT := time.Since(start)
|
||||||
expT := time.Duration(50000000)
|
expT := time.Duration(100000000)
|
||||||
testutil.Assert(t, actT < expT, "closing the db took more than expected. exp: <%v, act: %v", expT, actT)
|
testutil.Assert(t, actT < expT, "closing the db took more than expected. exp: <%v, act: %v", expT, actT)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user