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

SQL: make sure that fetched results are cleared from iterator when last element is fetched

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6
    • 2.7
    • sql

    Description

      In practice it is possible for user to forget to nullify Ignite's result set after iteration is finished. Or he may delay cleanup for some reason.
      The problem is that we hold the whole H2's result set inside our iterator even after all results are delivered to the user.
      We should forcibly close and then nullify all H2 objects once all results are returned.

      Key code pieces:
      IgniteH2Indexing.executeSqlQueryWithTimer - how we get result from H2
      H2ResultSetIterator - base iterator with H2 objects inside

      Attachments

        1. IGNITE-9256__Implemented.patch
          7 kB
          Sergey Grimstad

        Issue Links

          Activity

            People

              SGrimstad Sergey Grimstad
              vozerov Vladimir Ozerov
              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