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

fix: failed files should not be accounted as failed when the job is resumed #2462

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 1 addition & 11 deletions jobsAdmin/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -597,17 +597,7 @@ func resurrectJobSummary(jm ste.IJobMgr) common.ListJobSummaryResponse {
case common.ETransferStatus.Failed(),
common.ETransferStatus.TierAvailabilityCheckFailure(),
common.ETransferStatus.BlobTierFailure():
js.TransfersFailed++
// getting the source and destination for failed transfer at position - index
src, dst, isFolder := jpp.TransferSrcDstStrings(t)
// appending to list of failed transfer
js.FailedTransfers = append(js.FailedTransfers,
common.TransferDetail{
Src: src,
Dst: dst,
IsFolderProperties: isFolder,
TransferStatus: common.ETransferStatus.Failed(),
ErrorCode: jppt.ErrorCode()}) // TODO: Optimize
js.TotalBytesExpected += uint64(jppt.SourceSize)
case common.ETransferStatus.SkippedEntityAlreadyExists(),
common.ETransferStatus.SkippedBlobHasSnapshots():
js.TransfersSkipped++
Expand Down