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

Connect Engine: CREATE TABLE memory leak

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.0, 10.1
    • Fix Version/s: 10.1.18, 10.0.28
    • Labels:
      None
    • Environment:
      3.2.0-4-amd64 #1 SMP Debian 3.2.35-2 x86_64 GNU/Linux

      Description

      Scenario:

      Bash console (it's mandatory to execute from the bash):
      1) mysql -h 127.0.0.1 --port=3306 -u user -ppassword db -e 'DROP TABLE IF EXISTS c1;'

      2) mysql -h 127.0.0.1 --port=3306 -u user -ppassword db -e 'CREATE TABLE c1 ENGINE=CONNECT TABLE_TYPE=MYSQL DBNAME='\''information_schema'\'' OPTION_LIST='\''host=127.0.0.1,port=33235,user=user,password=password'\'' `tabname`='\''tables'\'''

      This scenario leads to spending an additional 500 MB of virtual memory (don't know exactly about the physical memory) for each repetition. This memory is not released until you restart the mysql process. Remote database name and a table - can be any.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bertrandop Olivier Bertrand
              Reporter:
              Sergey.Antonyuk Sergey Antonyuk
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: