-
Notifications
You must be signed in to change notification settings - Fork 231
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
base: main
Are you sure you want to change the base?
Conversation
@@ -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) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this
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
How Has This Been Tested?
Thank you for your contribution to AzCopy!