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

OQGraph query causes OOM-kill

    XMLWordPrintable

Details

    Description

      I was experimenting with what OQGraph is capable of.
      My first query was made my MariaDB server killed

      The query:
      `SELECT * FROM personParentGraph WHERE latch='dijkstras' AND origid=1 AND destid=2;`

      My Backing table:

      CREATE TABLE personParent (
        person_id INTEGER UNSIGNED,
        parent_id INTEGER UNSIGNED,
        PRIMARY KEY (person_id, parent_id),
        FOREIGN KEY (person_id) REFERENCES person(id) ON UPDATE CASCADE,
        FOREIGN KEY (parent_id) REFERENCES person(id) ON UPDATE CASCADE
      );
      

      I created OQGraph table with this DDL:

      CREATE TABLE personParentGraph
          ENGINE=OQGRAPH
          data_table='personParent' origid='person_id' destid='parent_id';
      

      SysLog:
      OS: Ubuntu 22.04.1 LTS,

      Version: mariadb-server 1:10.9.5+maria~ubu2204 amd64

      Apr  4 19:58:19 localhost systemd[1]: mariadb.service: A process of this unit has been killed by the OOM killer.
      Apr  4 19:58:20 localhost systemd[1]: mariadb.service: Main process exited, code=killed, status=9/KILL
      Apr  4 19:58:20 localhost systemd[1]: mariadb.service: Failed with result 'oom-kill'.
      Apr  4 19:58:20 localhost systemd[1]: mariadb.service: Consumed 20.742s CPU time.
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            hurelhuyag Хүрэлхуяг
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.