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

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5(EOL), 10.0(EOL), 10.1(EOL), 10.2(EOL)
    • 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

          wlad Vladislav Vaintroub created issue -
          wlad Vladislav Vaintroub made changes -
          Field Original Value New Value
          Fix Version/s 10.0.33 [ 22552 ]
          Fix Version/s 10.0 [ 16000 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          wlad Vladislav Vaintroub added a comment - - edited https://github.com/MariaDB/server/commit/66eb9774e43dc96e7d45d800b4860354f81d258d
          wlad Vladislav Vaintroub made changes -
          Summary my_write() sets inappropriate errno, if WriteFile fails with ERROR_FILE_SYSTEM_LIMITATON my_write() sets inappropriate errno, if WriteFile fails with ERROR_FILE_SYSTEM_LIMITATION
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 82337 ] MariaDB v4 [ 152736 ]

          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.