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

invoke NotifyingNotifiableFuture#notifyDone from non-calling thread #660

Merged
merged 1 commit into from Nov 25, 2011

Conversation

vblagoje
Copy link

Master only. Do not integrate yet, as we have no consensus about resolution! See https://issues.jboss.org/browse/ISPN-1541

}
return result;
}
};
l.setNetworkFuture(asyncExecutor.submit(c));
futureSet.countDown();
futureSet.countDown();
l.notifyDone();
Copy link
Member

Choose a reason for hiding this comment

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

The point of the method is to make the RPC asynchronously, so I'm pretty sure in most cases invokeRemotelyInFuture returns before invokeRemotely returns (on the background thread).

Copy link
Author

Choose a reason for hiding this comment

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

See UT on how we can not notifyDone from the same thread invoking invokeRemotely

@galderz
Copy link
Member

galderz commented Nov 21, 2011

Vladimir, JIRA?

@vblagoje
Copy link
Author

https://issues.jboss.org/browse/ISPN-1541 will append more description soon

@danberindei danberindei merged commit 66b9d01 into infinispan:master Nov 25, 2011
@danberindei
Copy link
Member

Integrated, we did come to an agreement in the end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants