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

Increase mysqldump default max_allowed_packet variable

Details

    • Task
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.11
    • None
    • None

    Description

      For some reason mysqldump has by default max_allowed_packet 24MB.
      If you have one field bigger than 24MB, then mysqldump will drop connection in the middle of packet and server will see "connection reset by peer" error.
      User has basically no idea, what is causing this error.

      24MB seems to be too small default value.

      For example mysql client has default max_allowed_packet 1GB.

      Yes, it is possible to increase this value from commandline parameter, but as there is no proper error message and user does not know what's the problem causing this error.

      I suggest, we should increase mysqldump default value to 1GB, the same as mysql client.

      Attachments

        Activity

          serg Sergei Golubchik added a comment - - edited

          Sure. I don't see any drawbacks from increasing the default.
          May be we should do it in other clients too, e.g. it'd be unexpected if mysqldump could produce a dump that mysql cannot restore.

          serg Sergei Golubchik added a comment - - edited Sure. I don't see any drawbacks from increasing the default. May be we should do it in other clients too, e.g. it'd be unexpected if mysqldump could produce a dump that mysql cannot restore.
          ralf.gebhardt Ralf Gebhardt added a comment -

          serg, and you would agree to do this change of the default also for current GA versions?

          ralf.gebhardt Ralf Gebhardt added a comment - serg , and you would agree to do this change of the default also for current GA versions?

          yes, because I cannot think of any negative effects of this change. Except that the client will use more memory instead of aborting in the middle of a big dump. But it's probably a good thing. Those who are short on memory likely set max_allowed_packet anyway and don't rely on a default.

          serg Sergei Golubchik added a comment - yes, because I cannot think of any negative effects of this change. Except that the client will use more memory instead of aborting in the middle of a big dump. But it's probably a good thing. Those who are short on memory likely set max_allowed_packet anyway and don't rely on a default.

          People

            Unassigned Unassigned
            BB Silver Asu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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