influxdb/tsdb/index
Edd Robinson 9bfd1119b9 fix(storage): Fix issue where fields re-appear
Fixes #10052

This commit fixes an issue where field keys would reappear in results
when querying previously dropped measurements.

The issue manifests itself when duplicates of a new series are inserted
into the `inmem` index. In this case, a map that tracks the number of
series belonging to a measurement was incorrectly incremented once for
each duplication of the series. Then, when it came time to drop the
measurement, the index assumed there were several series belonging to
the measurement left in the index (because the counter was higher than
it should be). The result of that was that the `fields.idx` file (which
stores a mapping between measurements and field keys) was not truncated
and rebuilt. This left old field keys in that file, which were then
returned in subsequent queries over all field keys.
2019-07-05 12:24:03 +01:00
..
inmem fix(storage): Fix issue where fields re-appear 2019-07-05 12:24:03 +01:00
internal Refactor File mock 2017-12-05 16:17:15 +00:00
tsi1 Ensure that cached series id sets are Go heap backed 2019-02-12 15:20:24 -07:00
index.go reintegrating in-memory index 2017-01-05 10:07:35 -07:00