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

SQL: partition reservations are released too early in lazy mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • sql
    • None

    Description

      In lazy mode we advance query execution as new page requests arrive. However, method GridMapQueryExecutor#onQueryRequest0 releases partition reservations when only the very first page is processed:

      finally {
          GridH2QueryContext.clearThreadLocal();
      
          if (distributedJoinMode == OFF)
              qctx.clearContext(false);
      }
      

      It means that incorrect results may be returned on unstable topology. We need to release partitions only after the whole query is executed.

      Attachments

        Issue Links

          Activity

            People

              rkondakov Roman Kondakov
              vozerov Vladimir Ozerov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: