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

            rpizzi Rick Pizzi (Inactive) created issue -
            rpizzi Rick Pizzi (Inactive) made changes -
            Field Original Value New Value
            Attachment my.cnf [ 52336 ]
            rpizzi Rick Pizzi (Inactive) made changes -
            Attachment code.lua [ 52337 ]
            rpizzi Rick Pizzi (Inactive) made changes -
            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 traffic at all.

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

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



            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 traffic 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.

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



            rpizzi Rick Pizzi (Inactive) made changes -
            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 traffic 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.

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



            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.

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



            rpizzi Rick Pizzi (Inactive) made changes -
            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.

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



            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.

            {code}
            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
            {code}



            julien.fritsch Julien Fritsch made changes -
            Assignee Jan Lindström [ jplindst ]
            julien.fritsch Julien Fritsch made changes -
            Fix Version/s 10.4 [ 22408 ]
            julien.fritsch Julien Fritsch made changes -
            Labels need_feedback
            julien.fritsch Julien Fritsch made changes -
            Labels need_feedback
            julien.fritsch Julien Fritsch made changes -
            Assignee Jan Lindström [ jplindst ] Julius Goryavsky [ sysprg ]
            julien.fritsch Julien Fritsch made changes -
            Assignee Julius Goryavsky [ sysprg ] Stepan Patryshev [ stepan.patryshev ]
            jplindst Jan Lindström (Inactive) made changes -
            Assignee Stepan Patryshev [ stepan.patryshev ] Teemu Ollakka [ teemu.ollakka ]
            sysprg Julius Goryavsky made changes -
            julien.fritsch Julien Fritsch made changes -
            Assignee Teemu Ollakka [ teemu.ollakka ] Jan Lindström [ jplindst ]
            jplindst Jan Lindström (Inactive) made changes -
            issue.field.resolutiondate 2020-08-05 12:52:05.0 2020-08-05 12:52:05.712
            jplindst Jan Lindström (Inactive) made changes -
            Fix Version/s 10.4.14 [ 24305 ]
            Fix Version/s 10.5.5 [ 24423 ]
            Fix Version/s 10.4 [ 22408 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 110391 ] MariaDB v4 [ 158013 ]
            mariadb-jira-automation Jira Automation (IT) made changes -
            Zendesk Related Tickets 103838

            People

              jplindst Jan Lindström (Inactive)
              rpizzi Rick Pizzi (Inactive)
              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.