Browse Source

Merge pull request #3257 from prometheus/beorn7/storage2

Avoid blocking in the logThrottling loop
pull/3259/head
Björn Rabenstein 7 years ago committed by GitHub
parent
commit
5fad671af9
  1. 5
      storage/local/storage.go

5
storage/local/storage.go

@ -999,7 +999,10 @@ func (s *MemorySeriesStorage) logThrottling() {
select {
case <-s.throttled:
if !timer.Stop() {
<-timer.C
select {
case <-timer.C:
default:
}
score, _ := s.getPersistenceUrgencyScore()
log.
With("urgencyScore", score).

Loading…
Cancel
Save