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

Local SqlFieldsQuery on client leads to exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cache, clients, sql
    • Labels:
      None

      Description

      SqlFieldsQuery with setLocal(true) on client node throws exception

       

      Caused by: java.lang.NullPointerException
          at org.apache.ignite.internal.processors.query.h2.database.H2TreeIndex.segmentsCount(H2TreeIndex.java:187)
          at org.apache.ignite.internal.processors.query.h2.opt.GridH2IndexBase.threadLocalSegment(GridH2IndexBase.java:182)
          at org.apache.ignite.internal.processors.query.h2.database.H2TreeIndex.find(H2TreeIndex.java:195)
          at org.h2.index.BaseIndex.find(BaseIndex.java:128)
          at org.h2.index.IndexCursor.find(IndexCursor.java:169)
          at org.h2.table.TableFilter.next(TableFilter.java:468)
          at org.h2.command.dml.Select$LazyResultQueryFlat.fetchNextRow(Select.java:1452)
          at org.h2.result.LazyResult.hasNext(LazyResult.java:79)
          at org.h2.result.LazyResult.next(LazyResult.java:59)
          at org.h2.command.dml.Select.queryFlat(Select.java:519)
          at org.h2.command.dml.Select.queryWithoutCache(Select.java:625)
          at org.h2.command.dml.Query.queryWithoutCacheLazyCheck(Query.java:114)
          at org.h2.command.dml.Query.query(Query.java:352)
          at org.h2.command.dml.Query.query(Query.java:333)
          at org.h2.command.CommandContainer.query(CommandContainer.java:113)
          at org.h2.command.Command.executeQuery(Command.java:201)
          ... 18 more

       

      Reproducer "LocalSqlFieldsQueryOnClientFailTest.java" is in the attachement

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ezagumennov Evgenii Zagumennov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: