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

mariabackup exits with success (0) despite "No space left on device" errors

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6, 10.11, 11.4, 11.8
    • 10.11, 11.4, 11.8
    • Backup
    • None
    • Can result in unexpected behaviour
    • Q2/2026 Server Maintenance

    Description

      Root Cause: In extra/mariabackup/ds_local.cc, the local_close() function ignored the return value of my_close(). On network filesystems like CIFS/NAS, writes are buffered and the actual flush to disk happens at close() time. When disk is full, write() succeeds but close() fails
      with errno 28. The error was printed but not propagated, so mariabackup reported "completed OK!".

      Fix:

           // Before (line 286):
           my_close(fd, MYF(MY_WME));
      

           // After:
           if (my_close(fd, MYF(MY_WME)))
               ret = 1;
      

      File: extra/mariabackup/ds_local.cc, function local_close() (line 286)

      Attachments

        Activity

          People

            holyfoot Alexey Botchkov
            claudio.nanni Claudio Nanni
            Votes:
            1 Vote for this issue
            Watchers:
            6 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.