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

Pavel Tupitsyn commented on IGNITE-21011:
-----------------------------------------

[~isapego] please review.

> Java thin 3.0: Failed to execute multi-statement query using client API
> -----------------------------------------------------------------------
>
>                 Key: IGNITE-21011
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21011
>             Project: Ignite
>          Issue Type: Bug
>          Components: thin client
>    Affects Versions: 3.0.0-beta1
>            Reporter: Pavel Pereslegin
>            Assignee: Pavel Tupitsyn
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> In IGNITE-17060 was added support for executing scripts using client API.
> But e2e tests were not enabled (missing @Test annotation).
> For example test 
> ItSqlClientSynchronousApiTest#runScriptThatCompletesSuccessfully fails with 
> the following error:
> {noformat}
>  java.lang.IndexOutOfBoundsException: index: 191, length: 1 (expected: 
> range(0, 191))
>       at 
> io.netty.buffer.AbstractByteBuf.checkRangeBounds(AbstractByteBuf.java:1390) 
> ~[netty-buffer-4.1.100.Final.jar:4.1.100.Final]
>       at 
> io.netty.buffer.AbstractByteBuf.checkIndex0(AbstractByteBuf.java:1397) 
> ~[netty-buffer-4.1.100.Final.jar:4.1.100.Final]
>       at 
> io.netty.buffer.PooledSlicedByteBuf.getByte(PooledSlicedByteBuf.java:128) 
> ~[netty-buffer-4.1.100.Final.jar:4.1.100.Final]
>       at 
> org.apache.ignite.internal.client.proto.ClientMessageUnpacker.tryUnpackNil(ClientMessageUnpacker.java:458)
>  ~[main/:?]
>       at 
> org.apache.ignite.client.handler.requests.sql.ClientSqlExecuteRequest.readSession(ClientSqlExecuteRequest.java:178)
>  ~[main/:?]
>       at 
> org.apache.ignite.client.handler.requests.sql.ClientSqlExecuteScriptRequest.process(ClientSqlExecuteScriptRequest.java:46)
>  ~[main/:?]
>       at 
> org.apache.ignite.client.handler.ClientInboundMessageHandler.processOperation(ClientInboundMessageHandler.java:692)
>  [main/:?]
>       at 
> org.apache.ignite.client.handler.ClientInboundMessageHandler.processOperation(ClientInboundMessageHandler.java:508)
>  [main/:?]
>       at 
> org.apache.ignite.client.handler.ClientInboundMessageHandler.channelRead(ClientInboundMessageHandler.java:287)
>  [main/:?
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to