Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix drop measurement not dropping all data #8701

Merged
merged 2 commits into from
Aug 15, 2017
Merged

Conversation

jwilder
Copy link
Contributor

@jwilder jwilder commented Aug 15, 2017

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 allow deleteSeries to handle the index delete which already
accounts for removing the measurement when it is fully removed from the
index.

Required for all non-trivial PRs
  • Rebased/mergable
  • Tests pass
  • CHANGELOG.md updated
  • Sign CLA (if not already signed)
Required only if applicable

You can erase any checkboxes below this note if they are not applicable to your Pull Request.

  • InfluxQL Spec updated
  • Provide example syntax
  • Update man page when modifying a command
  • Config changes: update sample config (etc/config.sample.toml), server NewDemoConfig method, and Diagnostics methods reporting config settings, if necessary
  • InfluxData Documentation: issue filed or pull request submitted <link to issue or pull request>

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.
@jwilder jwilder requested a review from benbjohnson August 15, 2017 18:00
@jwilder jwilder added this to the 1.3.4 milestone Aug 15, 2017
@jwilder jwilder merged commit a4f6771 into master Aug 15, 2017
@jwilder jwilder deleted the jw-drop-measurement branch August 15, 2017 20:32
@jwilder jwilder mentioned this pull request Aug 15, 2017
4 tasks
jwilder added a commit that referenced this pull request Aug 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants