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 nil FieldCodec panic #3646

Merged
merged 1 commit into from
Aug 14, 2015
Merged

Conversation

benbjohnson
Copy link
Contributor

Overview

This pull request changes FieldCodec to always be non-nil. Normally it should always be non-nil, however, if metadata is not persisted correctly or consistently then it could be missing. A nil FieldCodec causes queries to panic.

Fixes #3535

@benbjohnson
Copy link
Contributor Author

I tried making a test case for this but it's difficult to reproduce an instance where there would not be metadata for a series. This should at least avoid the panic we were seeing.

@otoolep
Copy link
Contributor

otoolep commented Aug 13, 2015

+1

@otoolep
Copy link
Contributor

otoolep commented Aug 13, 2015

You may wish to update the CHANGELOG @benbjohnson

This commit changes FieldCodec to always be non-nil. Normally it should
always be non-nil, however, if metadata is not persisted correctly or
consistently then it could be missing. A nil FieldCodec causes queries
to panic.

Fixes influxdata#3535
@benbjohnson
Copy link
Contributor Author

@otoolep CHANGELOG updated. Merging...

benbjohnson added a commit that referenced this pull request Aug 14, 2015
@benbjohnson benbjohnson merged commit 43a6870 into influxdata:master Aug 14, 2015
@benbjohnson benbjohnson deleted the fix-3261 branch August 14, 2015 19:13
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.

None yet

2 participants