Diane Hardman created GEODE-2703:
------------------------------------
Summary: 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.
Test run located in:
/export/buglogs_bvt/lhughes/serialParReg-0318-115606_bugluceneQueryInTx
CLIENT vm_0_thr_0_client1_rs-GEM1332-client-2_20970
TASK[0] parReg.ParRegTest.HydraTask_doRROpsAndVerify
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)