mirror of https://github.com/prometheus/prometheus
Merge pull request #3257 from prometheus/beorn7/storage2
Avoid blocking in the logThrottling looppull/3259/head
commit
5fad671af9
|
@ -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…
Reference in New Issue