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 {
|
select {
|
||||||
case <-s.throttled:
|
case <-s.throttled:
|
||||||
if !timer.Stop() {
|
if !timer.Stop() {
|
||||||
<-timer.C
|
select {
|
||||||
|
case <-timer.C:
|
||||||
|
default:
|
||||||
|
}
|
||||||
score, _ := s.getPersistenceUrgencyScore()
|
score, _ := s.getPersistenceUrgencyScore()
|
||||||
log.
|
log.
|
||||||
With("urgencyScore", score).
|
With("urgencyScore", score).
|
||||||
|
|
Loading…
Reference in New Issue