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

MySQL Bug#59331 filesort with priority queue: handling of out-of-memory

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.0.10
    • None
    • None
    • None

    Description

      Test case for MySQL "Bug#59331 filesort with priority queue: handling of out-of-memory" fails in 10.0.

      In fact this bug is fixed in 10.0, but there are two problems causing test case to fail:
      1. Debug point "bounded_queue_init_fail" probe wasn't merged.
      2. "simulate_out_of_memory" probe of my_malloc doesn't report error causing assertion failure.

      Please merge test and fix mentioned above issues.

      --echo #
      --echo # Bug#59331 filesort with priority queue: handling of out-of-memory
      --echo #
       
      CREATE TABLE t1(f0 int auto_increment primary key, f1 int, f2 varchar(200));
      INSERT INTO t1(f1, f2) VALUES
      (0,"0"),(1,"1"),(2,"2"),(3,"3"),(4,"4"),(5,"5"),
      (6,"6"),(7,"7"),(8,"8"),(9,"9"),(10,"10");
       
      set debug= '+d,bounded_queue_init_fail';
      --replace_regex /Needed [0-9]* bytes/Needed NN bytes/
      --error 5
      SELECT * FROM t1 ORDER BY f1 ASC, f0 LIMIT 1;
      SET session debug= @old_debug;
       
      DROP TABLE t1;

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              svoj Sergey Vojtovich
              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.