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

[core-http] Report progress after pushing data #5298

Merged
merged 1 commit into from
Sep 30, 2019

Conversation

jeremymeng
Copy link
Member

We were reporting the progress before data is pushed. This leads to customer
reported issue like

#4719

where the uploaded progress events are triggered before data chunks are
completely uploaded.

This change introduces a ReportStream that provides the correct _transform
behavior.

We were reporting the progress before data is pushed. This leads to customer
reported issue like

Azure#4719

where the uploaded progress events are triggered before data chunks are
completely uploaded.

This change introduces a `ReportStream` that provides the correct `_transform`
behavior.
@jeremymeng jeremymeng merged commit 7e2c2ac into Azure:master Sep 30, 2019
jeremymeng added a commit to jeremymeng/azure-sdk-for-js that referenced this pull request Dec 5, 2019
The regression was introduced in Azure#5298. If a second argument `data`
is passed to `callback()` in `_transform()`, `data` will be pushed
again.  I misread the doc when adding the report transform.

This change removes the second argument from `callback()`.

Fixes Azure#6352.
jeremymeng added a commit to jeremymeng/azure-sdk-for-js that referenced this pull request Dec 5, 2019
The regression was introduced in Azure#5298. If a second argument `data`
is passed to `callback()` in `_transform()`, `data` will be pushed
again.  I misread the doc when adding the report transform.

This change removes the second argument from `callback()`.

Fixes Azure#6352.
jeremymeng added a commit that referenced this pull request Dec 5, 2019
…ess (#6427)

The regression was introduced in #5298. If a second argument `data`
is passed to `callback()` in `_transform()`, `data` will be pushed
again.  I misread the doc when adding the report transform.

This change removes the second argument from `callback()`.

Fixes #6352.
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.

3 participants