Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-36765

JSON histograms cannot handle >1 byte characters from 10.11.12

    XMLWordPrintable

Details

    • Can result in hang or crash
    • Hide
      Starting from 10.11.12, Incorrect handling of UTF-8 characters (and other character sets requiring more than a single byte representation) in the minimum/maximum positions of a table during the execution of ANALYZE TABLE tbl PERSISTENT FOR ALL resulted in an endless loop consuming more memory and prevented the server from terminating.
      Show
      Starting from 10.11.12, Incorrect handling of UTF-8 characters (and other character sets requiring more than a single byte representation) in the minimum/maximum positions of a table during the execution of ANALYZE TABLE tbl PERSISTENT FOR ALL resulted in an endless loop consuming more memory and prevented the server from terminating.

    Description

      As a regression from f699010, JSON histograms resulted in an endless loop for character sets where the bytes required was more than 1.

      This highlighted that the column statistics for minium/maximum values of the column for utf8 character sets was incorrect.

      regression from 11.4.5 and 10.11.13

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              viewhero Toshimitsu Nakanishi
              Votes:
              2 Vote for this issue
              Watchers:
              13 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.