Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-4346

Race condition in Tekton Results due to aggressive pruning of PipelineRuns

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • Tekton Results

      Description of problem:

      Upstream issue - https://github.com/tektoncd/results/issues/514

      We have encountered instances of race condition with aggressive pruning of PipelineRuns in Tekton Results Watcher while log streaming from the watcher to the API server which causes logs to be missing.

      Prerequisites (if any, like setup, operators/versions):

      Tekton Results with immediate pruning enabled.

      Steps to Reproduce 

      Upstream issue - https://github.com/tektoncd/results/issues/514

      Actual results:

      Missing logs

      Expected results:

      Logs should not be missing.

      Reproducibility (Always/Intermittent/Only Once):

      Build Details:

      Additional info (Such as Logs, Screenshots, etc):

      The probable cause is the pod gets deleted before watching could stream the logs to the API server from an aggressive pruning such as while `immediate pruning is activated` and that creates a race condition.

            sabhardw@redhat.com Satyam Bhardwaj
            sabhardw@redhat.com Satyam Bhardwaj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: