geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-2703) Improve error message that Lucene queries are not supported in the context of a transaction
Date Wed, 12 Apr 2017 20:56:42 GMT

    [ https://issues.apache.org/jira/browse/GEODE-2703?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15966608#comment-15966608
] 

ASF subversion and git services commented on GEODE-2703:
--------------------------------------------------------

Commit e7b57b679b1be837f943c34e1d7022b5aa8de583 in geode's branch refs/heads/feature/GEODE-2703
from [~huynhja]
[ https://git-wip-us.apache.org/repos/asf?p=geode.git;h=e7b57b6 ]

GEODE-2703: Improve exception message when executing lucene within a transaction

  * Throw a LuceneQueryException instead of a TransactionException


> Improve error message that Lucene queries are not supported in the context of a transaction
> -------------------------------------------------------------------------------------------
>
>                 Key: GEODE-2703
>                 URL: https://issues.apache.org/jira/browse/GEODE-2703
>             Project: Geode
>          Issue Type: Bug
>          Components: lucene
>            Reporter: Diane Hardman
>
> We currently do not support Lucene queries in the context of a transaction. The exception
thrown, however, may be confusing to the user.
> ERROR org.apache.geode.cache.TransactionException: Function inside a transaction cannot
execute on more than one node
> org.apache.geode.cache.TransactionException: Function inside a transaction cannot execute
on more than one node
> at org.apache.geode.internal.cache.execute.PartitionedRegionFunctionExecutor.validateExecution(PartitionedRegionFunctionExecutor.java:344)
> at org.apache.geode.internal.cache.PartitionedRegion.executeOnAllBuckets(PartitionedRegion.java:3840)
> at org.apache.geode.internal.cache.PartitionedRegion.executeFunction(PartitionedRegion.java:3353)
> 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.cache.lucene.internal.LuceneQueryImpl.findTopEntries(LuceneQueryImpl.java:115)
> at org.apache.geode.cache.lucene.internal.LuceneQueryImpl.findPages(LuceneQueryImpl.java:95)
> at org.apache.geode.cache.lucene.internal.LuceneQueryImpl.findResults(LuceneQueryImpl.java:81)
> at lucene.LuceneTest.executeLuceneQuery(LuceneTest.java:154)
> at parReg.ParRegTest.doEntryOperations(ParRegTest.java:2929)
> at parReg.ParRegTest.doRROpsAndVerify(ParRegTest.java:1709)
> at parReg.ParRegTest.HydraTask_doRROpsAndVerify(ParRegTest.java:958)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at hydra.MethExecutor.execute(MethExecutor.java:182)
> at hydra.MethExecutor.execute(MethExecutor.java:150)
> at hydra.TestTask.execute(TestTask.java:192)
> at hydra.RemoteTestModule$1.run(RemoteTestModule.java:212)
> ```



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message