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

Replace max_long_data_size functionality with max_allowed_packet

Details

    Description

      According to documentation, max_long_data_size is still present in MariaDB:

      https://mariadb.com/kb/en/mariadb/documentation/managing-mariadb/optimization-and-tuning/system-variables/server-system-variables/#max_long_data_size

      This variable was removed in Oracle's MySQL 5.6, and it's functionality was replaced with max_allowed_packet:

      http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_max_long_data_size

      Is there any reason to keep max_long_data_size in MariaDB? Some users think it should be removed.

      Attachments

        Activity

          I used this to test this:
          https://github.com/dveeden/mysql_supersize/blob/master/C/supersize.c

          max_allowed_packet can be 1GB
          max_long_data_size can be 4GB

          So if you want to insert (in chunks) more than 1G you need this variable.

          dveeden Daniël van Eeden added a comment - I used this to test this: https://github.com/dveeden/mysql_supersize/blob/master/C/supersize.c max_allowed_packet can be 1GB max_long_data_size can be 4GB So if you want to insert (in chunks) more than 1G you need this variable.

          Note that for max_allowed_packet < transaction < max_long_data_size this will break replication and point-in-time restore based on binlogs. So this setting is dangerous on systems with binlog enabled.

          dveeden Daniël van Eeden added a comment - Note that for max_allowed_packet < transaction < max_long_data_size this will break replication and point-in-time restore based on binlogs. So this setting is dangerous on systems with binlog enabled.
          dveeden Daniël van Eeden added a comment - - edited

          It happens both when master uses SBR and RBR:

                          Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'log event entry exceeded max_allowed_packet; Increase max_allowed_packet on master; the first event '.' at 4, the last event read from 'mysql-bin.000006' at 1000000917, the last byte read from 'mysql-bin.000006' at 1000000936.'

                          Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'log event entry exceeded max_allowed_packet; Increase max_allowed_packet on master; the first event 'mysql-bin.000001' at 312, the last event read from 'mysql-bin.000005' at 1000000898, the last byte read from 'mysql-bin.000005' at 1000000917.'

          This is with master and slave with max_allowed_packet = 1G.

          dveeden Daniël van Eeden added a comment - - edited It happens both when master uses SBR and RBR: Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'log event entry exceeded max_allowed_packet; Increase max_allowed_packet on master; the first event '.' at 4, the last event read from 'mysql-bin.000006' at 1000000917, the last byte read from 'mysql-bin.000006' at 1000000936.' Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'log event entry exceeded max_allowed_packet; Increase max_allowed_packet on master; the first event 'mysql-bin.000001' at 312, the last event read from 'mysql-bin.000005' at 1000000898, the last byte read from 'mysql-bin.000005' at 1000000917.' This is with master and slave with max_allowed_packet = 1G.
          greenman Ian Gilfillan added a comment -

          This is still listed as deprecated, and in practice set to max_allowed_packet, so perhaps 10.2 is a good time to remove it?

          greenman Ian Gilfillan added a comment - This is still listed as deprecated, and in practice set to max_allowed_packet, so perhaps 10.2 is a good time to remove it?
          danblack Daniel Black added a comment -

          As this deprecated option survived another full major release perhaps 10.3 is a time to remove it?

          danblack Daniel Black added a comment - As this deprecated option survived another full major release perhaps 10.3 is a time to remove it?

          People

            serg Sergei Golubchik
            GeoffMontee Geoff Montee (Inactive)
            Votes:
            2 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.