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 a mistake about exception handling in asynchronous execution of scan_partitioner. #3040

Merged
merged 1 commit into from Dec 14, 2017

Conversation

taeguk
Copy link
Member

@taeguk taeguk commented Dec 3, 2017

No description provided.

…can_partitioner.

In asynchronous execution, exceptions must be wrapped in hpx::future.
return hpx::make_exceptional_future<R>(std::current_exception());
}
}

Copy link
Member

Choose a reason for hiding this comment

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

Could you elaborate on why this has to be removed please?

Copy link
Member Author

@taeguk taeguk Dec 12, 2017

Choose a reason for hiding this comment

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

@sithhell This is fundamentally wrong.
f.has_exception() always returns false when the task is running.
And, even if f.has_exception() can return true, this code is still wrong because occurred exception must be wrapped into the future.

Copy link
Member

Choose a reason for hiding this comment

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

thanks for the clarification. makes sense.

Copy link
Member

@sithhell sithhell left a comment

Choose a reason for hiding this comment

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

LGTM.

@msimberg msimberg merged commit ef9dfd1 into STEllAR-GROUP:master Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants