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

Don't use deleted shard groups on pre-creation #3038

Merged
merged 1 commit into from
Jun 18, 2015

Conversation

vladlopes
Copy link
Contributor

The way it was, shard groups that were deleted by retention policy
enforcement were being recreated again, just to be deleted in the
next enforcement run. This change will help keep raft log free from
this unnecessary creation and deletion.

The way it was, shard groups that were deleted by retention policy
enforcement were being recreated again, just to be deleted in the
next enforcement run. This change will help keep raft log free from
this unnecessary creation and deletion.
@vladlopes
Copy link
Contributor Author

@otoolep Could you take a look at this?

I haven't found why there were shard groups with negative timestamps I mentioned on PR #3020, but I think this will help keep this creation/deletion only when it is needed.

@otoolep
Copy link
Contributor

otoolep commented Jun 18, 2015

Very good -- good catch. This does indeed look like a bug.

Can you open a ticket about the negative timestamps, and supply more information?

@otoolep
Copy link
Contributor

otoolep commented Jun 18, 2015

+1 from @benbjohnson

otoolep added a commit that referenced this pull request Jun 18, 2015
Don't use deleted shard groups on pre-creation
@otoolep otoolep merged commit a74c16e into influxdata:master Jun 18, 2015
@vladlopes vladlopes deleted the check-deleted-precreation branch June 18, 2015 19:12
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