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

SQL: Query reduce can fail with NPE on retry.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.6
    • 2.9, 2.8.1
    • sql
    • None

    Description

      GridReduceQueryExecutor can fail with NPE on retry if it couldn't map during retry timeout.
      So, 'lastRun' can be null here

         if (attempt > 0 && retryTimeout > 0 && (U.currentTimeMillis() - startTime > retryTimeout)) {
                      UUID retryNodeId = lastRun.retryNodeId();
                      String retryCause = lastRun.retryCause();
      
                      assert !F.isEmpty(retryCause);
      

      Also assertion above is not correct.
      It is possible, we failed to send request, then retried with success to remap.
      So, 'lastRun' would be not null, but cause is empty.

      Attachments

        Issue Links

          Activity

            People

              amashenkov Andrey Mashenkov
              amashenkov Andrey Mashenkov
              Ivan Pavlukhin Ivan Pavlukhin
              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