Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.2.5
-
1
Description
Using the QueryIndexManager API buildDeferredIndexes() always returns an error code 3000/ParsingFailureException when running agasint Couchbase version 6.0.(5).
The integration test buildOneDeferredIndex has the following exception:
com.couchbase.client.core.error.ParsingFailureException: Parsing of the input failed {"completed":true,"coreId":"0x1e96567c00000001","errors":[{"code":3000,"message":"syntax error - at (","retry":false}],"httpStatus":400,"idempotent":false,"lastDispatchedFrom":"192.168.100.174:53219","lastDispatchedTo":"172.23.111.137:8093","requestId":108,"requestType":"QueryRequest","retried":0,"service":{"operationId":"f3cc2c23-d6d5-40ba-8e24-aca5c5c7841e","statement":"BUILD INDEX ON `12dcb02f-7975-4f3b-a58a-f9bf1064560c` ( ( SELECT RAW name FROM system:indexes WHERE keyspace_id = ? AND bucket_id IS MISSING AND state = \"deferred\" ))","type":"query"},"timeoutMs":75000,"timings":{"dispatchMicros":152007,"totalDispatchMicros":152007,"totalMicros":153515}} |
|
at com.couchbase.client.java.AsyncUtils.block(AsyncUtils.java:51) |
at com.couchbase.client.java.manager.query.QueryIndexManager.buildDeferredIndexes(QueryIndexManager.java:259) |
at com.couchbase.client.java.manager.query.QueryIndexManagerIntegrationTest.buildOneDeferredIndex(QueryIndexManagerIntegrationTest.java:211) |
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) |
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) |
at java.base/java.lang.reflect.Method.invoke(Method.java:566) |
at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:725) |
at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60) |
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131) |
at org.junit.jupiter.engine.extension.TimeoutInvocation.proceed(TimeoutInvocation.java:46) |
at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:149) |
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:140) |
at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:84) |
at org.junit.jupiter.engine.execution.ExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(ExecutableInvoker.java:115) |
at org.junit.jupiter.engine.execution.ExecutableInvoker.lambda$invoke$0(ExecutableInvoker.java:105) |
at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106) |
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64) |
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45) |
at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37) |
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:104) |
at org.junit.jupiter.engine.execution.ExecutableInvoker.invoke(ExecutableInvoker.java:98) |
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:214) |
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) |
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:210) |
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:135) |
at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:66) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151) |
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) |
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) |
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) |
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) |
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) |
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) |
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) |
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) |
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540) |
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155) |
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141) |
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139) |
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138) |
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95) |
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35) |
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57) |
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54) |
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107) |
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88) |
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54) |
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67) |
at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52) |
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114) |
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86) |
at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86) |
at org.junit.platform.launcher.core.SessionPerRequestLauncher.execute(SessionPerRequestLauncher.java:53) |
at com.intellij.junit5.JUnit5IdeaTestRunner.startRunnerWithArgs(JUnit5IdeaTestRunner.java:69) |
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33) |
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:230) |
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:58) |
Suppressed: java.lang.Exception: The above exception was originally thrown by another thread at the following location.
|
at com.couchbase.client.core.io.netty.query.QueryChunkResponseParser.errorsToThrowable(QueryChunkResponseParser.java:148) |
at com.couchbase.client.core.io.netty.query.QueryChunkResponseParser.lambda$error$10(QueryChunkResponseParser.java:128) |
at java.base/java.util.Optional.map(Optional.java:265) |
at com.couchbase.client.core.io.netty.query.QueryChunkResponseParser.error(QueryChunkResponseParser.java:128) |
at com.couchbase.client.core.io.netty.chunk.ChunkedMessageHandler.lambda$maybeCompleteResponseWithFailure$1(ChunkedMessageHandler.java:283) |
at java.base/java.util.Optional.orElseGet(Optional.java:369) |
at com.couchbase.client.core.io.netty.chunk.ChunkedMessageHandler.maybeCompleteResponseWithFailure(ChunkedMessageHandler.java:282) |
at com.couchbase.client.core.io.netty.chunk.ChunkedMessageHandler.channelRead(ChunkedMessageHandler.java:214) |
This affects the following tests that all fail for the same reason as above:
- buildDeferredIndexOnAbsentBucket()
- buildOneDeferredIndex()
- buildTwoDeferredIndexes()
- buildZeroDeferredIndexes()
- reactiveSmokeTest()
- watchRetriesUntilIndexesComeOnline()
Note that 6.0 is the only version of couchbase with which these tests fail, so it may be a query bug with that version, which I'm looking into.