Dan Smith created GEODE-3817:
--------------------------------
Summary: Function invocation from a client is not asynchronous
Key: GEODE-3817
URL: https://issues.apache.org/jira/browse/GEODE-3817
Project: Geode
Issue Type: Bug
Components: functions
Reporter: Dan Smith
The function API makes it appear that function execution is asynchronous,
because it returns a ResultCollector that behaves like a future - it has
methods to get the results within a timeout.
Unfortunately, when invoked from a client, the function is executed
synchronously within the call to execute. This means code like this will not
actually time out within the expected timeout:
{code}
ResultCollector collector = FunctionService.onRegion(region).execute(function)
collector.getResult(1, TimeUnit.SECONDS);
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)