Typed iterators are racy #14267
Labels
area/storage
flaky test
This is a flaky test. These issues should be groomed at the next opportunity
kind/bug
wontfix
Once I developed a fix for #10052 I found that a concurrent test we run started to fail occasionally:
TestShard_WritePoints_FieldConflictConcurrentQuery
.This test continuously writes into the same series using different typed values (one goroutine integers, one goroutine floats) and then attempts to read them out. It panics occasionally because by the time the query engine has determined it needs a float cursor, the series has been deleted and reinserted as an integer. Therefore the type conversion fails with a panic:
influxdb/tsdb/engine/tsm1/iterator.gen.go
Lines 527 to 534 in 9bfd111
The stacktrace on the failing test looks like:
We need to determine the following:
tsm1.Engine
does not lock over deletes/queries...The error could be returned from:
influxdb/tsdb/engine/tsm1/iterator.gen.go
Lines 237 to 245 in 9bfd111
However, it's not clear how many places we need to check and the scope of that work...
The text was updated successfully, but these errors were encountered: