Skip to content

Race condition in annotations management #1321

Description

@enarha

Expected Behavior

There are some re-tries in management of annotations using Server-Side Apply patch when TaskRuns in a PipelineRun are executed sequentially (using runAfter). The following warning is logged: .* due to Server-Side Apply patch conflict, using force patch.. The issue is not observed when TaskRuns are executed in parallel (runAfter is not used). The issue was easy to reproduce in a local Kind environment, a PipelineRun with 5 TaskRuns with a light payload (echo "something").

Actual Behavior

Steps to Reproduce the Problem

Additional Info

  • Kubernetes version:

    Output of kubectl version:

    (paste your output here)
    
  • Tekton Pipeline version:

    Output of tkn version or kubectl get pods -n tekton-pipelines -l app=tekton-pipelines-controller -o=jsonpath='{.items[0].metadata.labels.version}'

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions