Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-21011

Java thin 3.0: Failed to execute multi-statement query using client API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-beta1
    • 3.0
    • thin client

    Description

      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:

       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/:?
      

      Attachments

        Issue Links

          Activity

            People

              ptupitsyn Pavel Tupitsyn
              xtern Pavel Pereslegin
              Igor Sapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m