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

Race condition when posting an envelope into an inbox #8

Closed
nobeh opened this issue Feb 26, 2015 · 0 comments
Closed

Race condition when posting an envelope into an inbox #8

nobeh opened this issue Feb 26, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@nobeh
Copy link
Member

nobeh commented Feb 26, 2015

With a minimal example as:

        for (int i = 0; i < n; ++i) {
            Future<Integer> f = actor.send(actor, message);
            try {
                f.get();
            } catch (Exception e) {
                e.printStackTrace(System.err);
            }
        }

it is possible that delivering an envelope into the inbox would run into a race condition and thus the future value might be lost. Note that in such situation using jstack might not should any BLOCKED threads as this is a race condition that is lost in the internal executor of the envelope executors.

@nobeh nobeh added the bug label Feb 26, 2015
@nobeh nobeh added this to the v0.8 milestone Feb 26, 2015
@nobeh nobeh self-assigned this Feb 26, 2015
@nobeh nobeh closed this as completed Feb 26, 2015
@nobeh nobeh modified the milestones: v0.8.1, v0.8 Feb 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant