mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Fix goroutine leak in leveldb.AppendSamples
The error channels in AppendSamples need to be buffered, since in the presence of errors their values may not be consumed.
This commit is contained in:
parent
c5e507cd9c
commit
5eb9840ed7
|
@ -538,8 +538,8 @@ func (l *LevelDBMetricPersistence) AppendSamples(samples model.Samples) (err err
|
|||
|
||||
var (
|
||||
fingerprintToSamples = groupByFingerprint(samples)
|
||||
indexErrChan = make(chan error)
|
||||
watermarkErrChan = make(chan error)
|
||||
indexErrChan = make(chan error, 1)
|
||||
watermarkErrChan = make(chan error, 1)
|
||||
)
|
||||
|
||||
go func(groups map[model.Fingerprint]model.Samples) {
|
||||
|
|
Loading…
Reference in a new issue