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

[WIP] Fix incorrect count of pending transfers when a job is resumed #2961

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wonwuakpa-msft
Copy link
Member

@wonwuakpa-msft wonwuakpa-msft commented Feb 27, 2025

Description

  • Feature / Bug Fix: (Brief description of the feature or issue being addressed)

  • The count of pending transfers after a job is resumed was incorrect. If the pending value is negative, it defaults to 0

  • Related Links:

  • Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation update required
  • Code quality improvement
  • Other (describe):

How Has This Been Tested?

Thank you for your contribution to AzCopy!

@@ -137,11 +137,13 @@ func (cca *resumeJobController) ReportProgressOrExit(lcm common.LifecycleMgr) (t
// indicate whether constrained by disk or not
perfString, diskString := getPerfDisplayText(summary.PerfStrings, summary.PerfConstraint, duration, false)

var xfersDoneFailSkip = summary.TransfersCompleted + summary.TransfersFailed + summary.TransfersSkipped
pending := common.Iff(summary.TotalTransfers > xfersDoneFailSkip, summary.TotalTransfers-xfersDoneFailSkip, 0)
Copy link
Member

Choose a reason for hiding this comment

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

We will have to figure out why are we getting this negative value instead of just setting this value to 0.

@wonwuakpa-msft wonwuakpa-msft changed the title Fix incorrect count of pending transfers when a job is resumed [WIP] Fix incorrect count of pending transfers when a job is resumed Mar 6, 2025
@vibhansa-msft vibhansa-msft added this to the 10.29.0 milestone Mar 7, 2025
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 this pull request may close these issues.

4 participants