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

disabling pipelinerun/taskrun timeouts leads to overrun of reconcile requeues #7588

Closed
gabemontero opened this issue Jan 19, 2024 · 0 comments · Fixed by #7589
Closed

disabling pipelinerun/taskrun timeouts leads to overrun of reconcile requeues #7588

gabemontero opened this issue Jan 19, 2024 · 0 comments · Fixed by #7589
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@gabemontero
Copy link
Contributor

Expected Behavior

If the pipelinerun/taskrun reconcilers are handling items whose timeouts have been disabled by setting the timeout field to 0, then if those reconcilers decide to return a controller.NewRequeueAfter(waitTime) generated error to the controller framework, then a reasonable delay before the next reconciliation event occurs.

Actual Behavior

A negative number is set to waitTime and the controller.NewRequeueAfter(waitTime) results in the item being immediately requeued, leading to many reconciiations per second for a relatively idle pipelinerun/taskrun

Steps to Reproduce the Problem

  1. Set the pipelinerun or taskrun timeout to 0
  2. Create a pipelinerun or taskrun whose state remains unchanged for even just a relatively small amount of time (30 seconds, a minute even)

Additional Info

  • Kubernetes version:

    various versions

`

  • Tekton Pipeline version:

0.53.x and forward, minimally

I'll be submitting a PR that strives to address this momentarily

@vdemeester @afrittoli @abayer @khrm FYI

I am attaching a pipeline controller log as well. Look for instances of the logs for the pipelinerun managed-release-9ln4j where you see the log pipelinerun/pipelinerun.go:769","msg":"PipelineRun managed-release-9ln4j status is being set to ... many times a second for long stretches.
tekton-pipelines-controller-requeue-overrun.log.gz

@gabemontero gabemontero added the kind/bug Categorizes issue or PR as related to a bug. label Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant