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

Reset stalled state in upload data after retrying #32283

Merged
merged 2 commits into from
Aug 14, 2018

Conversation

PVince81
Copy link
Contributor

@PVince81 PVince81 commented Aug 9, 2018

Description

After retrying a chunk, we need to reset the upload object's "stalled" state, else the next stalled chunk is not retried.

Related Issue

Fixes #32282

Motivation and Context

How Has This Been Tested?

See steps in original ticket as it needs patching

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)
  • add unit tests

@PVince81 PVince81 added this to the development milestone Aug 9, 2018
@PVince81 PVince81 self-assigned this Aug 9, 2018
@ownclouders ownclouders added Type:Bug p2-high Escalation, on top of current planning, release blocker labels Aug 9, 2018
@codecov
Copy link

codecov bot commented Aug 9, 2018

Codecov Report

Merging #32283 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #32283   +/-   ##
=========================================
  Coverage     64.01%   64.01%           
  Complexity    18559    18559           
=========================================
  Files          1171     1171           
  Lines         69834    69834           
  Branches       1267     1267           
=========================================
  Hits          44706    44706           
  Misses        24758    24758           
  Partials        370      370
Flag Coverage Δ Complexity Δ
#javascript 52.84% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.29% <ø> (ø) 18559 <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03459dd...a8b7508. Read the comment docs.

@PVince81 PVince81 force-pushed the reset-stalled-upload-flag branch from 7e00f96 to c530975 Compare August 9, 2018 12:45
@PVince81
Copy link
Contributor Author

PVince81 commented Aug 9, 2018

added unit test

@PVince81
Copy link
Contributor Author

PVince81 commented Aug 9, 2018

  • BUG: retries never count up

@@ -1124,6 +1125,7 @@ OC.Uploader.prototype = _.extend({
});

// clear the previous data:
upload.data.stalled = false;
Copy link
Member

Choose a reason for hiding this comment

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

ok, this makes sense

@@ -854,7 +854,8 @@ OC.Uploader.prototype = _.extend({
if (progress >= total) {
// change message if we stalled at 100%
this.$uploadprogressbar.find('.label .desktop').text(t('core', 'Processing files...'));
} else if (new Date().getTime() - this._lastProgressTime >= this._uploadStallTimeout * 1000 ) {
}
Copy link
Member

Choose a reason for hiding this comment

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

ah ... yes also makes sense

@DeepDiver1975 DeepDiver1975 merged commit 795726a into master Aug 14, 2018
@DeepDiver1975 DeepDiver1975 deleted the reset-stalled-upload-flag branch August 14, 2018 14:03
DeepDiver1975 added a commit that referenced this pull request Aug 14, 2018
…ad-flag

Reset stalled state in upload data after retrying
DeepDiver1975 added a commit that referenced this pull request Aug 16, 2018
[stable10] Merge pull request #32283 from owncloud/reset-stalled-uplo…
@ownclouders ownclouders added p3-medium Normal priority and removed p2-high Escalation, on top of current planning, release blocker labels Aug 20, 2018
@phil-davis
Copy link
Contributor

Backport stable10 #32283

@lock lock bot locked as resolved and limited conversation to collaborators Aug 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload stall timeout detection not accurate
5 participants