Skip to content

[Storage] Imports @azure/abort-controller - storage-blob#4502

Merged
HarshaNalluru merged 8 commits intoAzure:feature/storagefrom
HarshaNalluru:AbortControllerBlob
Aug 1, 2019
Merged

[Storage] Imports @azure/abort-controller - storage-blob#4502
HarshaNalluru merged 8 commits intoAzure:feature/storagefrom
HarshaNalluru:AbortControllerBlob

Conversation

@HarshaNalluru
Copy link
Contributor

Update storage-blob to use the @azure/aborter-controller library and remove the existing Aborter from the src folder, updates tests, recordings, changelog accordingly.

@HarshaNalluru HarshaNalluru added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels Jul 29, 2019
@HarshaNalluru HarshaNalluru self-assigned this Jul 29, 2019
options: AppendBlobCreateOptions = {}
): Promise<Models.AppendBlobCreateResponse> {
const aborter = options.abortSignal || Aborter.none;
const aborter = options.abortSignal || AbortSignal.none;
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't the abortSignal optional in the options passed to the create method below?
If so, then why do we set it to AbortSignal.none?
Can't the underlying code handle the case of no abort signal?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you're right, I'm not sure why Jeremy added it in the first place.
I can remove it and see if that breaks anything.
We might have to do the same at many other places.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created a new issue #4570 to track and update everywhere we do this in all the storage-packages

Copy link
Member

@XiaoningLiu XiaoningLiu left a comment

Choose a reason for hiding this comment

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

We can leverage aborter.spec.ts to make sure the new Aborter package works properly with storage SDKs, can you bring it back?

@HarshaNalluru HarshaNalluru merged commit bd1b376 into Azure:feature/storage Aug 1, 2019
@HarshaNalluru HarshaNalluru deleted the AbortControllerBlob branch September 16, 2019 03:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants