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

my_create don't handle errors

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.0.3, 5.5.32, 5.1.67, 5.2.14, 5.3.12
    • 5.5(EOL)
    • None
    • None

    Description

      As a part of executing mysql_library_init (=mysql_server_init) user gives an array of arguments, one specifying '--datadir'. If accessing that directory fails, mariadb handlerton init fails, and the function returns with value indicating error, which is translated as 'Unknown error' to the user.

      If the error is trivial and known for underlying OS, for example errno==2, file not found, it would be expected that mariadb would report the failure to the user so that user can correct her input argument. Now real error is hidden with no reason thus making it pretty difficult to write an application which could fix the problem without human intervention.

      Currently, if opening datadir fails, the easiest way for the user is to build debug version and run debugger to see what failed.

      Attachments

        Activity

          People

            holyfoot Alexey Botchkov
            vilho Vilho Raatikka
            Votes:
            1 Vote for this issue
            Watchers:
            2 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.