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 for #1466 #1489

Merged
merged 1 commit into from
Apr 26, 2016
Merged

Fix for #1466 #1489

merged 1 commit into from
Apr 26, 2016

Conversation

tsg
Copy link
Contributor

@tsg tsg commented Apr 26, 2016

The cause was a nil value in the incoming JSON, which the generic
filtering code didn't expect.

I considered adding a recover to generic
filtering so that things like this don't crash the whole process, but decided
against. One reason is that it's better to discover these things while we're
still in alpha/beta. Second is that if we recover here, there could still be a
crash later in filtering our outputs.

Also took the opportunity to add a couple of system tests that combine json
and generic filtering.

The cause was a nil value in the incoming JSON, which the generic
filtering code didn't expect.

I considered adding a `recover` to generic
filtering so that things like this don't crash the whole process, but decided
against. One reason is that it's better to discover these things while we're
still in alpha/beta. Second is that if we recover here, there could still be a
crash later in filtering our outputs.

Also took the opportunity to add a couple of system tests that combine json
and generic filtering.
@tsg tsg added the review label Apr 26, 2016
@ruflin
Copy link
Contributor

ruflin commented Apr 26, 2016

LGTM

@ruflin ruflin merged commit f86e6e9 into elastic:master Apr 26, 2016
@ruflin ruflin mentioned this pull request Apr 27, 2016
@tsg tsg deleted the fix_null_in_json branch August 25, 2016 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants