Skip to content

cri/images: avoid false pull timeout on transfer progress events - #13084

Open
Retr0-XD wants to merge 1 commit into
containerd:mainfrom
Retr0-XD:fix/pull-progress-timeout-multipart-12811
Open

Retr0-XD wants to merge 1 commit into
containerd:mainfrom
Retr0-XD:fix/pull-progress-timeout-multipart-12811

Conversation

@Retr0-XD

Copy link
Copy Markdown

Summary

Fixes #12811 by preventing pull timeout cancellation when transfer progress events are still flowing but byte deltas are temporarily flat.

Problem

transferProgressReporter used byte-delta-only liveness to decide timeout cancellation. In multipart download workflows, this can misclassify an active pull as stalled if progress events continue but the sampled totalBytesRead does not advance in the timeout window.

Changes

  • Refresh timeout liveness timestamp on each valid transfer progress event handled by transferProgressReporter.
  • Keep existing byte-delta logic unchanged.
  • Add regression test TestTransferProgressReporterProgressEventRefreshesTimeout.

Testing

  • go test ./internal/cri/server/images -run 'TestTransferProgressReporter|TestTransferProgressReporterProgressEventRefreshesTimeout'
  • go test ./internal/cri/server/images

@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Mar 21, 2026
@dosubot dosubot Bot added area/cri Container Runtime Interface (CRI) kind/bug labels Mar 21, 2026

@themavik themavik left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bumping lastSeenTimestamp from handleProgress keeps the CRI pull watchdog alive when byte totals flatline but events still arrive. TestTransferProgressReporterProgressEventRefreshesTimeout uses a waiting event plus a short ticker to prove cancel stays idle.

@Retr0-XD

Retr0-XD commented Apr 1, 2026

Copy link
Copy Markdown
Author

Can anyone review this please?

@k8s-ci-robot

Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copilot AI lite review requested due to automatic review settings September 13, 2026 13:33
@Retr0-XD
Retr0-XD force-pushed the fix/pull-progress-timeout-multipart-12811 branch from e4faf7b to 6c2dea9 Compare September 13, 2026 13:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI review requested due to automatic review settings September 15, 2026 04:41
@Retr0-XD
Retr0-XD force-pushed the fix/pull-progress-timeout-multipart-12811 branch from 6c2dea9 to 06e5fbe Compare September 15, 2026 04:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Retr0-XD
Retr0-XD force-pushed the fix/pull-progress-timeout-multipart-12811 branch from 06e5fbe to 6076dd8 Compare September 17, 2026 10:14
Copilot AI review requested due to automatic review settings September 17, 2026 10:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Retr0-XD

Copy link
Copy Markdown
Author

Rebased onto current upstream/main and removed the merge commits. The branch is now a single commit on top of main. Please let me know if anything else is needed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cri Container Runtime Interface (CRI) kind/bug size/M

Projects

Status: Needs Triage

Development

Successfully merging this pull request may close these issues.

Containerd multipart fetch cancelled by progress timeout

4 participants