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

LB-171 / LB-172: Fix bugs in influx-writer #197

Merged
merged 3 commits into from Jun 19, 2017

Conversation

paramsingh
Copy link
Collaborator

LB-171: marc2k3's listens weren't being inserted because they contained a list in their additional_info field which led to parse errors (this seems to be a bug in influx because other non-string entities like uuids were inserted correctly). Converting all new fields in additional info to strings explicitly now fixes that. Also added tests for listens like this.

LB-172: While doing this, I found a problem that might be causing LB-172. Influx-writer was dying because the debug message tried to serialize an array of Listen objects. However this would only trouble us if DUMP_JSON_WITH_ERRORS was True in production, and I'm not sure that it was.

@mayhem
Copy link
Member

mayhem commented Jun 12, 2017

DUMP_JSON_WITH_ERRORS is true while we are in beta.

@paramsingh
Copy link
Collaborator Author

That was causing LB-172 then for sure.

Not doing this caused a bug where if a field had a list, it
wouldn't get converted and would cause a parse error in
influx when we submitted it.
`data` is a list of Listen objects. When we try to json.dump
that list, it raises an error and causes the influx-writer to
die. This is what causes LB-172 too, afaik.
Changed additional_info.json to add a new field that contains
a list to test for the bug causing LB-171.
Copy link
Member

@mayhem mayhem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, based on our conversation friday, all good!

@mayhem mayhem merged commit e4e3b3b into metabrainz:master Jun 19, 2017
@paramsingh paramsingh deleted the influx-writer/bugs branch June 19, 2017 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants