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

LP:632971 - maria_read_log fails to create MAI files

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      In certain instances maria_read_log -a fails to create any MAI files but still reports success.

      Examination with strace reveals the following calls:

      open("/tmp/test/table100000_maria_key_pk_parts_2_int_autoinc#P#p0.MAI", O_RDWR) = -1 ENOENT (No such file or directory)
      open("/tmp/test/table100000_maria_int_autoinc.MAI", O_RDWR) = -1 ENOENT (No such file or directory)
      open("/tmp/test/table100000_maria_key_pk_parts_2_int_autoinc#P#p1.MAI", O_RDWR) = -1 ENOENT (No such file or directory)

      It seems that this happens when the first part of the log is not available to maria_read_log because it was rotated out. In this case, -a should fail with a suitable error message rather than just do nothing. Errors from open() should be handled and reported.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            monty Michael Widenius added a comment -

            Re: maria_read_log fails to create MAI files
            The above is ok as the files are assumed to be deleted after the log entry was done.

            Show
            monty Michael Widenius added a comment - Re: maria_read_log fails to create MAI files The above is ok as the files are assumed to be deleted after the log entry was done.
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 632971

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 632971

              People

              • Assignee:
                monty Michael Widenius
                Reporter:
                philipstoev Philip Stoev
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: