Skip to content

[Pytorch] Propagate errors in clearAndWaitForOutstandingRpcsAsync.#32952

Closed
jjlilley wants to merge 1 commit intogh/jjlilley/48/basefrom
gh/jjlilley/48/head
Closed

[Pytorch] Propagate errors in clearAndWaitForOutstandingRpcsAsync.#32952
jjlilley wants to merge 1 commit intogh/jjlilley/48/basefrom
gh/jjlilley/48/head

Conversation

@jjlilley
Copy link

@jjlilley jjlilley commented Feb 4, 2020

Stack from ghstack:

When the Async() version of clearAndWaitForOutstandingRpcs() was written,
we didn't yet have the generic Future class, and hadn't worked out our
error model fully.

This change fixes that method to properly propagate the first encountered error
to the future, using a bool+CAS.

Differential Revision: D19710337

When the Async() version of clearAndWaitForOutstandingRpcs() was written,
we didn't yet have the generic Future<T> class, and hadn't worked out our
error model fully.

This change fixes that method to properly propagate the first encountered error
to the future, using a bool+CAS.

Differential Revision: [D19710337](https://our.internmc.facebook.com/intern/diff/D19710337/)

[ghstack-poisoned]
jjlilley pushed a commit that referenced this pull request Feb 4, 2020
When the Async() version of clearAndWaitForOutstandingRpcs() was written,
we didn't yet have the generic Future<T> class, and hadn't worked out our
error model fully.

This change fixes that method to properly propagate the first encountered error
to the future, using a bool+CAS.

Differential Revision: [D19710337](https://our.internmc.facebook.com/intern/diff/D19710337/)

ghstack-source-id: 97665749
Pull Request resolved: #32952
Copy link
Contributor

@pritamdamania87 pritamdamania87 left a comment

Choose a reason for hiding this comment

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

Thanks for the quick fix!

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in b894dc0.

@facebook-github-bot facebook-github-bot deleted the gh/jjlilley/48/head branch February 7, 2020 15:18
BowenBao pushed a commit to BowenBao/pytorch that referenced this pull request Feb 12, 2020
…ytorch#32952)

Summary:
Pull Request resolved: pytorch#32952

When the Async() version of clearAndWaitForOutstandingRpcs() was written,
we didn't yet have the generic Future<T> class, and hadn't worked out our
error model fully.

This change fixes that method to properly propagate the first encountered error
to the future, using a bool+CAS.
ghstack-source-id: 97665749

Test Plan: existing test coverage, buck test mode/dev-nosan caffe2/test/...

Differential Revision: D19710337

fbshipit-source-id: 66ce5593a94a16ea624930dbb9409917ef5cfd5d
ttumiel pushed a commit to ttumiel/pytorch that referenced this pull request Mar 4, 2020
…ytorch#32952)

Summary:
Pull Request resolved: pytorch#32952

When the Async() version of clearAndWaitForOutstandingRpcs() was written,
we didn't yet have the generic Future<T> class, and hadn't worked out our
error model fully.

This change fixes that method to properly propagate the first encountered error
to the future, using a bool+CAS.
ghstack-source-id: 97665749

Test Plan: existing test coverage, buck test mode/dev-nosan caffe2/test/...

Differential Revision: D19710337

fbshipit-source-id: 66ce5593a94a16ea624930dbb9409917ef5cfd5d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants