Fix drop measurement not dropping all data

If there were multiple shards, drop measurement could update the index
and remove the measurement before the other shards ran their deletes.
This causes the later shards to not see any series to delete.

The fix is to all deleteSeries to handle the index delete which already
accounts for removing the measurement when it is fully removed from the
index.
pull/8701/head
Jason Wilder 2017-08-15 11:19:45 -06:00
parent 3fb7941430
commit 90e2cadeb6
1 changed files with 0 additions and 5 deletions

View File

@ -1046,11 +1046,6 @@ func (e *Engine) deleteMeasurement(name []byte) error {
return err
}
}
// Remove the measurement from the index.
if err := e.index.DropMeasurement(name); err != nil {
return err
}
return nil
}