[ https://issues.apache.org/jira/browse/GEODE-2824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
xiaojian zhou reassigned GEODE-2824: ------------------------------------ Assignee: xiaojian zhou > FunctionException: No target node found when executing hasNext on Lucene > result > ------------------------------------------------------------------------------- > > Key: GEODE-2824 > URL: https://issues.apache.org/jira/browse/GEODE-2824 > Project: Geode > Issue Type: Bug > Components: lucene > Reporter: Jason Huynh > Assignee: xiaojian zhou > > The stack trace below is thrown during a race condition when a node is > closing and calling hasNext on a Lucene result. > It looks there was a CacheClosedException, but this execution was unable to > find a target node to retry on. This execution then threw a > FunctionException. > We have code to unwrap CacheClosedExceptions from function exceptions, > however this was just an ordinary function exception. The underlying cause > is that the cache is closing at this time. > We should probably wrap all function exceptions with either a > LuceneQueryException or equivalent as a user would probably not expect a > FunctionException when calling Lucene methods. > The stack trace: > {noformat} > at > org.apache.geode.internal.cache.PartitionedRegion.executeOnMultipleNodes(PartitionedRegion.java:3459) > at > org.apache.geode.internal.cache.PartitionedRegion.executeFunction(PartitionedRegion.java:3367) > at > org.apache.geode.internal.cache.execute.PartitionedRegionFunctionExecutor.executeFunction(PartitionedRegionFunctionExecutor.java:228) > at > org.apache.geode.internal.cache.execute.AbstractExecution.execute(AbstractExecution.java:376) > at > org.apache.geode.internal.cache.partitioned.PRFunctionStreamingResultCollector.getResult(PRFunctionStreamingResultCollector.java:178) > at > org.apache.geode.cache.lucene.internal.PageableLuceneQueryResultsImpl.getValues(PageableLuceneQueryResultsImpl.java:112) > at > org.apache.geode.cache.lucene.internal.PageableLuceneQueryResultsImpl.getHitEntries(PageableLuceneQueryResultsImpl.java:91) > at > org.apache.geode.cache.lucene.internal.PageableLuceneQueryResultsImpl.advancePage(PageableLuceneQueryResultsImpl.java:139) > at > org.apache.geode.cache.lucene.internal.PageableLuceneQueryResultsImpl.hasNext(PageableLuceneQueryResultsImpl.java:148) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)