You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/05/06 00:24:12 UTC
[jira] [Commented] (GEODE-625) A function's ResultCollector throws
ClassCastException when ResultSender.sendException is invoked
[ https://issues.apache.org/jira/browse/GEODE-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15273378#comment-15273378 ]
ASF subversion and git services commented on GEODE-625:
-------------------------------------------------------
Commit aca7b288f378ec05e00ec3a9277265d1a9679b4a in incubator-geode's branch refs/heads/develop from [~upthewaterspout]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=aca7b28 ]
GEODE-625: Adding tests for exception handling of functions
Testing how functions propagate exceptions from within the function to
the caller or the result collector.
> A function's ResultCollector throws ClassCastException when ResultSender.sendException is invoked
> -------------------------------------------------------------------------------------------------
>
> Key: GEODE-625
> URL: https://issues.apache.org/jira/browse/GEODE-625
> Project: Geode
> Issue Type: Bug
> Components: functions
> Reporter: Ashvin
> Assignee: Dan Smith
>
> For e.g. If LuceneFunction.execute invokes resultSender.sendException, the following error is generated.
> {code}
> java.lang.ClassCastException: java.lang.IllegalArgumentException cannot be cast to com.gemstone.gemfire.cache.lucene.int
> ernal.distributed.TopEntriesCollector
> at com.gemstone.gemfire.cache.lucene.internal.distributed.TopEntriesFunctionCollector.addResult(TopEntriesFunctionColle
> ctor.java:1)
> at com.gemstone.gemfire.internal.cache.execute.LocalResultCollectorImpl.addResult(LocalResultCollectorImpl.java:76)
> at com.gemstone.gemfire.internal.cache.execute.PartitionedRegionFunctionResultSender.lastResult(PartitionedRegionFuncti
> onResultSender.java:208)
> at com.gemstone.gemfire.internal.cache.execute.PartitionedRegionFunctionResultSender.lastResult(PartitionedRegionFuncti
> onResultSender.java:166)
> at com.gemstone.gemfire.internal.cache.execute.PartitionedRegionFunctionResultSender.sendException(PartitionedRegionFun
> ctionResultSender.java:301)
> at com.gemstone.gemfire.cache.lucene.internal.distributed.LuceneFunction.execute(LuceneFunction.java:52)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)