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

INSERT-SELECT with many when/case/if conditions running forever

    XMLWordPrintable

Details

    • Bug
    • Status: Stalled (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 10.6.4, 10.3.38, 10.6.12
    • 10.4, 10.6
    • None

    Description

      One of our customers migrated from MySQL to MariaDB 10.6.4 and their INSERT-SELECT query having many case/when/if conditions running forever.

      Locally on the empty tables, can reproduce this situation, queries are getting stuck with "Init" and "Closing tables" state.

      MariaDB [(none)]> show processlist;
      +------+-----------------+-----------+------+---------+-------+------------------------+------------------------------------------------------------------------------------------------------+----------+
      | Id   | User            | Host      | db   | Command | Time  | State                  | Info                                                                                                 | Progress |
      +------+-----------------+-----------+------+---------+-------+------------------------+------------------------------------------------------------------------------------------------------+----------+
      .....
      |  255 | root            | localhost | mcc  | Query   |  9511 | closing tables         | insert into mcc.testoutplanreport_p1
      (
      select period,plant_code,rawline,finishedgood,status,w1status |    0.000 |
      |  288 | root            | localhost | NULL | Query   |  8881 | init                   | select period,plant_code,rawline,finishedgood,status,w1status,DELQ,DEL_DSI,DELO
      ,WW1P1,WW1P1_DSI,WW1 |    0.000 |
      .....
      

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            suresh.ramagiri@mariadb.com suresh ramagiri
            Votes:
            1 Vote for this issue
            Watchers:
            8 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.