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

my_write() sets inappropriate errno, if WriteFile fails with ERROR_FILE_SYSTEM_LIMITATION

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5, 10.0, 10.1, 10.2
    • 10.0.33
    • Platform Windows
    • None

    Description

      WriteFile may fail if number of NTFS extents reached limit. GetLastError() returns 665 (ERROR_FILE_SYSTEM_LIMITATION), and this is mapped to catch-all generic EINVAL,
      which does not help much with troubleshooting.

      In one case , as reported by support, mariabackup was returning EINVAL during write of a large file, and it required procmon tracing to find out the actual reason for failure.

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            wlad Vladislav Vaintroub
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.