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 panic on write if target RP does not exist #4136

Merged
merged 3 commits into from
Sep 17, 2015
Merged

Don't panic on write if target RP does not exist #4136

merged 3 commits into from
Sep 17, 2015

Conversation

otoolep
Copy link
Contributor

@otoolep otoolep commented Sep 16, 2015

Cluster write code was not checking that the target retention policy actually existed, like it does for the target database. This change fixes that.

I also added a unit test that shows behaviour of the store on "get retention policy". This seems to be current behaviour so I want to confirm that is correct.

Fixes #4129

@otoolep
Copy link
Contributor Author

otoolep commented Sep 17, 2015

Confirmed this fixes the issue. The system does not panic, and instead the following error now appears in the logs:

[opentsdb] 2015/09/16 18:36:02 failed to write point batch to database "opentsdb": retention policy not found

@otoolep
Copy link
Contributor Author

otoolep commented Sep 17, 2015

@jwilder

@otoolep otoolep changed the title Add RP create-and-get test cases Don't panic on write if target RP does not exist Sep 17, 2015
@jwilder
Copy link
Contributor

jwilder commented Sep 17, 2015

👍

otoolep added a commit that referenced this pull request Sep 17, 2015
Don't panic on write if target RP does not exist
@otoolep otoolep merged commit dc2e16c into master Sep 17, 2015
@otoolep otoolep deleted the no_auto_rp branch October 28, 2015 20:04
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.

retention-autocreate = false : crash !
2 participants