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

Replace max_long_data_size functionality with max_allowed_packet

    Details

    • Type: Task
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: OTHER
    • Labels:

      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.

        Gliffy Diagrams

          Attachments

            Activity

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

            Show
            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.
            Hide
            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.

            Show
            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.
            Hide
            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.

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

              People

              • Assignee:
                Unassigned
                Reporter:
                GeoffMontee Geoff Montee
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: