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

recovering shouldn't change masking state in a recovered action #12

Merged
merged 6 commits into from
Jan 10, 2015

Conversation

maoe
Copy link
Contributor

@maoe maoe commented Aug 19, 2014

This is a bug report rather than a merge request. I've attached a failing test case to demonstrate the issue.

The problem is that when recovering, the masking state of the retrying action is set to MaskedInterruptible even though the original action has been run in Unmasked. It would be nice if the action retried in Unmasked state.

EDIT: The failing test output: https://travis-ci.org/Soostone/retry/builds/32917884#L137-L141

@maoe maoe force-pushed the masking-state-in-recovering branch from 91e1156 to bec01ea Compare November 11, 2014 00:42
@maoe
Copy link
Contributor Author

maoe commented Nov 11, 2014

I just pushed a fix for the masking state issue. recovering now runs the action in the same masking state as in the original action. In contrast, it runs the exception handlers in MaskedInterruptible as before.

@maoe maoe changed the title Add a test case to check the masking state in recovering recovering shouldn't change masking state in a recovered action Nov 11, 2014
@maoe
Copy link
Contributor Author

maoe commented Dec 18, 2014

Any opinions?

@ozataman
Copy link
Member

@maoe Thank you for this and my apologies for the delayed response. It looks good and I will be merging it in shortly. I will have us use it in our own codebase for a little bit before releasing to hackage, but it shouldn't be long now.

I am assuming you have been using this modified version without any issues for a while now?

@ozataman ozataman merged commit 7a03992 into Soostone:master Jan 10, 2015
@maoe maoe deleted the masking-state-in-recovering branch January 12, 2015 23:39
@maoe
Copy link
Contributor Author

maoe commented Jan 13, 2015

Thanks!

I am assuming you have been using this modified version without any issues for a while now?

Not really. I'm still using the old version. If you could test this change, that would be great.

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.

2 participants