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

Non-informative warning on query retry - Query run was already removed

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.13
    • sql

    Description

      The non-informative warning is printed when SQL query is restarted.

      [WARN ][pub-#3460][GridReduceQueryExecutor] Query run was already removed: 1467
      2[2021-11-28T05:30:25,813][WARN ][pub-#3460][GridReduceQueryExecutor] Query run was already removed: 1468
      3[2021-11-28T05:30:25,874][WARN ][pub-#3460][GridReduceQueryExecutor] Query run was already removed: 1469

      Theis happens because we remove query context (ReduceQueryRun) from a map twice: when decide to retry the query 

                          if (retry) {
                              lastRun = runs.remove(qryReqId);
                              assert lastRun != null;
                          } else { 

      then when releasing resources in a finally block.

      finally {
          if (release) {
              releaseRemoteResources(nodes, r, qryReqId, qry.distributedJoins(), mvccTracker); 

      Thus, the second try is failed with the log message.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

              Slack

                Issue deployment