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

Assertion error in ClientCacheFieldsQueryCursor#writeEntry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.17
    • sql
    • Fixed assertion error on extra column in H2 ResultInterface#currentRow
    • Release Notes Required

    Description

      [2024-10-22T11:43:20,546][ERROR][client-connector-#257%ignite.SameTablesInCacheGroupTest0%][ClientListenerNioListener] Failed to process client request [req=o.a.i.i.processors.platform.client.cache.ClientCacheSqlFieldsQueryRequest@51324a86, msg=null]
       java.lang.AssertionError: null
      	at org.apache.ignite.internal.processors.platform.client.cache.ClientCacheFieldsQueryCursor.writeEntry(ClientCacheFieldsQueryCursor.java:47) ~[classes/:?]
      	at org.apache.ignite.internal.processors.platform.client.cache.ClientCacheFieldsQueryCursor.writeEntry(ClientCacheFieldsQueryCursor.java:28) ~[classes/:?]
      	at org.apache.ignite.internal.processors.platform.client.cache.ClientCacheQueryCursor.writePage(ClientCacheQueryCursor.java:79) ~[classes/:?]
      	at org.apache.ignite.internal.processors.platform.client.cache.ClientCacheSqlFieldsQueryResponse.encode(ClientCacheSqlFieldsQueryResponse.java:73) ~[classes/:?]
      	at org.apache.ignite.internal.processors.platform.client.ClientMessageParser.encode(ClientMessageParser.java:716) ~[classes/:?]
      	at org.apache.ignite.internal.processors.odbc.ClientListenerNioListener.onMessage(ClientListenerNioListener.java:215) ~[classes/:?]
      	at org.apache.ignite.internal.processors.odbc.ClientListenerNioListener.onMessage(ClientListenerNioListener.java:55) ~[classes/:?]
      	at org.apache.ignite.internal.util.nio.GridNioFilterChain$TailFilter.onMessageReceived(GridNioFilterChain.java:279) ~[classes/:?]
      	at org.apache.ignite.internal.util.nio.GridNioFilterAdapter.proceedMessageReceived(GridNioFilterAdapter.java:109) ~[classes/:?]
      	at org.apache.ignite.internal.util.nio.GridNioAsyncNotifyFilter$3.body(GridNioAsyncNotifyFilter.java:97) ~[classes/:?]
      	at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:125) ~[classes/:?]
      	at org.apache.ignite.internal.util.worker.GridWorkerPool$1.run(GridWorkerPool.java:70) ~[classes/:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
      	at java.lang.Thread.run(Thread.java:829) ~[?:?]
      

      Failure occurs on such sql fields query called from thin client:

      new SqlFieldsQuery("select _key, _val from " + TABLE_NAME + " where id > 10 order by id asc")
          .setPartitions(rnd.nextInt(dfltPartsCnt))
      

      Reproducer (flaky): AssertionReproducerTest.patch

      Attachments

        1. AssertionReproducerTest.patch
          5 kB
          Ilya Shishkov

        Issue Links

          Activity

            People

              nizhikov Nikolay Izhikov
              shishkovilja Ilya Shishkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 4h 40m
                  4h 40m