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

circular dependency between writeResponse & writeAdmissionResponse #1829

Closed
henrysecond1 opened this issue Mar 7, 2022 · 3 comments · Fixed by #1930
Closed

circular dependency between writeResponse & writeAdmissionResponse #1829

henrysecond1 opened this issue Mar 7, 2022 · 3 comments · Fixed by #1930

Comments

@henrysecond1
Copy link

Environment

  • k8s version: v1.19.9 (on-prem)
  • controller-runvime version: v0.8.2

Problem

I'm not sure when it actually happens, but we suffered from a very large stack trace log when admission errors occur.
When we investigate the log, we saw the two functions (writeResponse and writeAdmissionResponse) are repeatedly calling each other.

Could you tell me any suggestions to solve this problem?

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 5, 2022
@FillZpp
Copy link
Contributor

FillZpp commented Jun 11, 2022

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 11, 2022
@FillZpp
Copy link
Contributor

FillZpp commented Jun 11, 2022

@henrysecond1 It might be caused by the broken connection (e.g., broken pipe) with kube-apiserver, so that the encoder could never write the response into w io.Writer, and then it runs into endless circular calling.

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 a pull request may close this issue.

4 participants