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

memory leak in Galera-4

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.4.13
    • 10.4.14, 10.5.5
    • Galera
    • None

    Description

      Galera wsrep layer leaks memory on nodes receiving writesets.
      For some reason any issued DDL on master makes such nodes release some of the leaked memory (but doesn't stop the leak).

      This is affecting a customer of ours.
      It is clearly seen that the leak is in wsrep layer because if node gets evicted (wsrep layer is shut down but mysqld stays up) all memory is released instantly.

      Besides, the nodes where the leak appears are receiving NO queries at all.

      Leak only affects nodes receiving writesets via wsrep layer - master is NOT affected.

      How to reproduce: 3 Centos7 nodes, 1G memory on each, use supplied sysbench script and leave it running for few hours.

      sysbench --db-driver=mysql --mysql-host=localhost --mysql-user=root code.lua --tables=16 prepare
      sysbench --db-driver=mysql --mysql-host=localhost --mysql-user=root code.lua  --tables=16 --threads=64 --time=0 run
      

      Attachments

        1. code.lua
          1 kB
        2. my.cnf
          2 kB

        Issue Links

          Activity

            People

              jplindst Jan Lindström (Inactive)
              rpizzi Rick Pizzi
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.