mirror of
https://github.com/prometheus/prometheus
synced 2025-01-13 02:14:08 +00:00
fix deadlock in scrape manager (#4894)
Scrape manager will fall in deadlock when we reload configs frequently.
This commit is contained in:
parent
cfb3769274
commit
996fd958ac
@ -110,7 +110,7 @@ func (m *Manager) reload() {
|
||||
scrapeConfig, ok := m.scrapeConfigs[setName]
|
||||
if !ok {
|
||||
level.Error(m.logger).Log("msg", "error reloading target set", "err", "invalid config id:"+setName)
|
||||
return
|
||||
continue
|
||||
}
|
||||
sp = newScrapePool(scrapeConfig, m.append, log.With(m.logger, "scrape_pool", setName))
|
||||
m.scrapePools[setName] = sp
|
||||
|
Loading…
Reference in New Issue
Block a user