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

Shortcoming in Spider infinite loop detection for Partitions

    XMLWordPrintable

Details

    Description

      POC:

      INSTALL PLUGIN Spider SONAME 'ha_spider.so';
      CREATE TABLE t (c INT) ENGINE=Spider COMMENT='wrapper "mysql", SOCKET "../socket.sock", user "root", database "test"';
      INSERT INTO t VALUES (1);
      

      Leads to:

      10.5.26 b8f92ade57691a78cc97c5d79eae0a27a10cb8f2 (Optimized)

      10.5.26-opt>INSERT INTO t VALUES (1);
      ERROR 12719 (HY000): An infinite loop is detected when opening table test.t
      

      However, for partitions we see:

      INSTALL PLUGIN Spider SONAME 'ha_spider.so';
      CREATE TABLE t (c INT) ENGINE=Spider COMMENT='wrapper "mysql", SOCKET "../socket.sock", user "root", database "test"' PARTITION BY RANGE (c) (PARTITION p VALUES LESS THAN (10));
      INSERT INTO t VALUES (1);
      

      Leads to:

      10.5.26 b8f92ade57691a78cc97c5d79eae0a27a10cb8f2 (Optimized)

      10.5.26-opt>INSERT INTO t VALUES (1);
      ERROR 12702 (HY000): Remote table 'test.t#P#p' is not found
      

      Indicating that Spider is still looking for the table rather than detecting the infinite loop.

      Attachments

        Issue Links

          Activity

            People

              ycp Yuchen Pei
              Roel Roel Van de Paar
              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.