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

Update client_golang dependency to v1.3.0 #4943

Merged
merged 1 commit into from
Jan 18, 2020

Conversation

KashifSaadat
Copy link
Contributor

What this PR does / why we need it:

Update the prometheus/client_golang dependency to v1.3.0.

On occasion I have experienced the following errors running the ingress nginx controller, causing the container to die and restart:

2020/01/13 14:49:06 http: superfluous response.WriteHeader call from k8s.io/ingress-nginx/vendor/github.com/prometheus/client_golang/prometheus/promhttp.(*responseWriterDelegator).WriteHeader (delegator.go:58)
2020/01/13 14:49:09 Get http+unix://nginx-status/nginx_status: dial unix /tmp/nginx-status-server.sock: connect: connection refused
W0113 14:49:09.053465       8 nginx_status.go:172] unexpected error obtaining nginx status info: Get http+unix://nginx-status/nginx_status: dial unix /tmp/nginx-status-server.sock: connect: connection refused
2020/01/13 14:49:10 Get http+unix://nginx-status/nginx_status: dial unix /tmp/nginx-status-server.sock: connect: connection refused
W0113 14:49:10.152850       8 nginx_status.go:172] unexpected error obtaining nginx status info: Get http+unix://nginx-status/nginx_status: dial unix /tmp/nginx-status-server.sock: connect: connection refused

I haven't been able to consistently reproduce the error through changing load volumes or constructing particular requests, but have hit this on average once every two days. The above issue appears related to prometheus/prometheus#6139, for which there is a potential fix introduced in v1.2.0 of the client_golang dependency.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

How Has This Been Tested?

Ran the unit tests, built ingress-nginx from source with this PR and been running in a test environment (AWS, k8s v1.15) with some example workloads (internal web apps, ELK, Grafana, Artifactory, Sonarqube, Keycloak), haven't seen the issue re-occur (however I also haven't found a method of reliably reproducing this issue unfortunately).

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I've read the CONTRIBUTION guide
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 17, 2020
@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/retest

@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/approve

@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

@KashifSaadat thanks!

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 17, 2020
@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/retest

7 similar comments
@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/retest

@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/retest

@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/retest

@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/retest

@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/retest

@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/retest

@aledbf
Copy link
Member

aledbf commented Jan 17, 2020

/retest

@aledbf
Copy link
Member

aledbf commented Jan 18, 2020

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 18, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aledbf, KashifSaadat

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@1257ded). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #4943   +/-   ##
=========================================
  Coverage          ?   58.45%           
=========================================
  Files             ?       88           
  Lines             ?     6728           
  Branches          ?        0           
=========================================
  Hits              ?     3933           
  Misses            ?     2364           
  Partials          ?      431

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1257ded...ca88062. Read the comment docs.

@aledbf
Copy link
Member

aledbf commented Jan 18, 2020

/retest

2 similar comments
@aledbf
Copy link
Member

aledbf commented Jan 18, 2020

/retest

@aledbf
Copy link
Member

aledbf commented Jan 18, 2020

/retest

@k8s-ci-robot k8s-ci-robot merged commit 12aa726 into kubernetes:master Jan 18, 2020
@KashifSaadat KashifSaadat deleted the update-client_golang branch January 18, 2020 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants