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

Feature/uppsf 457 fix json failure #40

Closed
wants to merge 9 commits into from

Conversation

emildimitrov
Copy link

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

karsov
karsov previously requested changes Jun 5, 2019
Copy link

@karsov karsov left a 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.

handler.go Outdated Show resolved Hide resolved
epavlova
epavlova previously approved these changes Jun 6, 2019
@coveralls
Copy link

coveralls commented Jun 20, 2019

Coverage Status

Coverage decreased (-0.2%) to 64.35% when pulling 5110612 on feature/UPPSF-457-fix-json-failure into 7717886 on master.

Copy link

@MiroslavGatsanoga MiroslavGatsanoga left a 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.

handler.go Outdated Show resolved Hide resolved
handler.go Outdated Show resolved Hide resolved
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.
@mitagg mitagg dismissed karsov’s stale review June 26, 2019 06:51

The requested change is already implemented and it is tested in the dev cluster

@bboykov
Copy link
Contributor

bboykov commented Jan 27, 2021

stale

@bboykov bboykov closed this Jan 27, 2021
@mitagg mitagg deleted the feature/UPPSF-457-fix-json-failure branch January 17, 2022 10:07
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

9 participants