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

ANALYZE TABLE in processlist with State NULL

    XMLWordPrintable

Details

    Description

      When you run the following command:

      ANALYZE TABLE test.test PERSISTENT FOR ALL;

      SHOW PROCESSLIST in another connections shows always State NULL which is obviously not true:

      +-----+------+-----------+-------+---------+-------+----------+--------------------------------------------+
      | Id  | User | Host      | db    | Command | Time  | State    | Info                                       |
      +-----+------+-----------+-------+---------+-------+----------+--------------------------------------------+
      | 846 | root | localhost | mysql | Query   |    23 | NULL     | ANALYZE TABLE test.test PERSISTENT FOR ALL |
      | 851 | root | localhost | NULL  | Query   |     0 | starting | show processlist                           |
      +-----+------+-----------+-------+---------+-------+----------+--------------------------------------------+
      

      Something like "Sending data" would be more appropriate.

      Attachments

        Activity

          People

            Unassigned Unassigned
            oli Oli Sennhauser
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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