Uploaded image for project: 'MariaDB ColumnStore'
  1. MariaDB ColumnStore
  2. MCOL-5198

Part2 -Disk-based aggregation fails with ERROR 1815 (HY000): Internal error: TupleAggregateStep::threadedAggregateRowGroups()[24] MCS-2054: Unknown error while aggregation.

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 6.2.3, 6.3.1, 6.4.1
    • 6.4.5-dompe
    • ExeMgr
    • None
    • 2021-17

    Description

      The aggregation on VARCHAR(128) column(number of distinct values is aproximately 31 bln) fails with an obscure error.

      ERROR 1815 (HY000): Internal error: TupleAggregateStep::threadedAggregateRowGroups()[24] MCS-2054: Unknown error while aggregation.  
      

      The current implementation of RowAggStorage::increaseSize() can raise RowAggStorage::Data::fMask 4 times before rehashing happens. The guarding check in increaseSize() is too restrictive and fails easily with big numbers in fCurData->fMask and fCurData->fSize(see RowAggStorage::increaseSize() for details).

      The suggested solution is to increase the multiplier in the expression:

      if (fCurData->fSize * 2 < calcMaxSize(fCurData->fMask + 1))
      

      Attachments

        Activity

          alexey.vorovich alexey vorovich (Inactive) created issue -
          alexey.vorovich alexey vorovich (Inactive) made changes -
          Field Original Value New Value
          Fix Version/s 6.4.5 [ 28419 ]
          Fix Version/s 22.08.1 [ 28206 ]
          Fix Version/s 6.4.4-dompe [ 28418 ]
          alexey.vorovich alexey vorovich (Inactive) made changes -
          Summary CLONE - Disk-based aggregation fails with ERROR 1815 (HY000): Internal error: TupleAggregateStep::threadedAggregateRowGroups()[24] MCS-2054: Unknown error while aggregation. (part 2) ) Part2 -CLONE - Disk-based aggregation fails with ERROR 1815 (HY000): Internal error: TupleAggregateStep::threadedAggregateRowGroups()[24] MCS-2054: Unknown error while aggregation.
          alexey.vorovich alexey vorovich (Inactive) made changes -
          Summary Part2 -CLONE - Disk-based aggregation fails with ERROR 1815 (HY000): Internal error: TupleAggregateStep::threadedAggregateRowGroups()[24] MCS-2054: Unknown error while aggregation. Part2 -Disk-based aggregation fails with ERROR 1815 (HY000): Internal error: TupleAggregateStep::threadedAggregateRowGroups()[24] MCS-2054: Unknown error while aggregation.
          drrtuy Roman made changes -
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Closed [ 6 ]
          drrtuy Roman made changes -
          Resolution Duplicate [ 3 ]
          Status Closed [ 6 ] Stalled [ 10000 ]
          drrtuy Roman made changes -
          Assignee Alexey Antipovsky [ JIRAUSER47594 ] Roman [ drrtuy ]
          drrtuy Roman made changes -
          Status Stalled [ 10000 ] In Progress [ 3 ]
          drrtuy Roman made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Closed [ 6 ]
          toddstoffel Todd Stoffel (Inactive) made changes -
          Rank Ranked higher
          toddstoffel Todd Stoffel (Inactive) made changes -
          Rank Ranked higher

          People

            drrtuy Roman
            drrtuy Roman
            Daniel Lee Daniel Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.