Fix sporadic write failures with influx_stress
This Unlock was moved which seems to create a deadlock situation sometimes under high write load. This deadlock causes writes to fail with timeouts.pull/6767/head
parent
1f390ee290
commit
579923d95f
|
@ -139,11 +139,11 @@ func (d *DatabaseIndex) CreateSeriesIndexIfNotExists(measurementName string, ser
|
|||
|
||||
series.measurement = m
|
||||
d.series[series.Key] = series
|
||||
d.mu.Unlock()
|
||||
|
||||
m.AddSeries(series)
|
||||
|
||||
d.statMap.Add(statDatabaseSeries, 1)
|
||||
d.mu.Unlock()
|
||||
|
||||
return series
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue