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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5, 10.0, 10.1, 10.2
    • Fix Version/s: 10.0.33
    • Component/s: Platform Windows
    • Labels:
      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

            • Assignee:
              wlad Vladislav Vaintroub
              Reporter:
              wlad Vladislav Vaintroub
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: