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 regression introduced in #2732 #2767

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

aledbf
Copy link
Member

@aledbf aledbf commented Jul 10, 2018

No description provided.

@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 10, 2018
@codecov-io
Copy link

Codecov Report

Merging #2767 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2767      +/-   ##
==========================================
- Coverage    40.9%   40.87%   -0.03%     
==========================================
  Files          73       73              
  Lines        5105     5108       +3     
==========================================
  Hits         2088     2088              
- Misses       2728     2731       +3     
  Partials      289      289
Impacted Files Coverage Δ
internal/ingress/controller/store/store.go 59.63% <0%> (-0.55%) ⬇️

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 2d5b3db...6013150. Read the comment docs.

Copy link
Contributor

@antoineco antoineco left a comment

Choose a reason for hiding this comment

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

What happens exactly if nil is returned?

@aledbf
Copy link
Member Author

aledbf commented Jul 10, 2018

What happens exactly if nil is returned?

I0710 13:42:32.162914       8 nginx.go:276] Starting NGINX process
I0710 13:42:32.163887       8 leaderelection.go:175] attempting to acquire leader lease  ingress-nginx/ingress-controller-leader-internal-nginx-int...
E0710 13:42:32.166196       8 controller.go:619] Error getting Ingress annotations "namespace/ing-int-foo-app-nginx-int": no object matching key "namespace/ing-int-foo-app-nginx-int" in local store
E0710 13:42:32.166469       8 runtime.go:66] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
/go/src/k8s.io/ingress-nginx/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:72
/go/src/k8s.io/ingress-nginx/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:65
/go/src/k8s.io/ingress-nginx/vendor/k8s.io/apimachinery/pkg/util/runtime/runtime.go:51
/usr/local/go/src/runtime/asm_amd64.s:573
/usr/local/go/src/runtime/panic.go:502
/usr/local/go/src/runtime/panic.go:63
/usr/local/go/src/runtime/signal_unix.go:388
/go/src/k8s.io/ingress-nginx/internal/ingress/controller/controller.go:686

https://github.com/kubernetes/ingress-nginx/blob/master/internal/ingress/controller/controller.go#L628

@antoineco
Copy link
Contributor

Makes sense, I was about to argue we should handle pointers if we pass pointers, but it's gonna be quite tedious to add if anns != nil to all these lines :D

/lgtm

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

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@k8s-ci-robot k8s-ci-robot merged commit bdd2c5e into kubernetes:master Jul 10, 2018
@aledbf
Copy link
Member Author

aledbf commented Jul 10, 2018

Makes sense, I was about to argue we should handle pointers if we pass pointers, but it's gonna be quite tedious to add if anns != nil to all these lines :D

I tried to do that but then I followed the pragmatic approach 😛

@aledbf aledbf deleted the fix-regression branch July 10, 2018 19:43
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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants