[ https://issues.apache.org/jira/browse/GEODE-2824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16001191#comment-16001191 ]
ASF subversion and git services commented on GEODE-2824: -------------------------------------------------------- Commit 3f1482b689db67a764b1f6507d4482a45e4bd11f in geode's branch refs/heads/develop from zhouxh [ https://git-wip-us.apache.org/repos/asf?p=geode.git;h=3f1482b ] GEODE-2824: When advisor cannot found target nodes for bucket id, should double check if the member is offline. > 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)