-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/uppsf 457 fix json failure #40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from my comment I would try redirecting Heimdall checks to our Dev environment to do the real testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After cloning the repository and running dep ensure
the Gopkg.lock file gets modified. This change should be committed so that we can have reproducible builds, because the build is based on the exact contents of this file.
Refactor buildHealthcheckJSONResponse function to use utility handleResponseWriterErr function for logging error when writing in body stream fails. Update lock file with latest dependecies ensuring consistent dep ensure.
The requested change is already implemented and it is tested in the dev cluster
stale |
Reproduced https://github.com/Financial-Times/up-failures/blob/master/2019/2019-06-01-upp-aggregate-healthcheck-failure.md
with giving the service a bit of load pressure.
Checked the json for some wrong formats, but couldn't find such.
Tried to separate json building from sending over the wire for better troubleshooting and couldn't reproduce it anymore. My assumption is there was network related problem while simultaneously converting to json and writing to response buffer.
I'v also removed the explicit panic.
Lets test this in staging for few days.
@karsov @epavlova FYI