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

LP:588599 - ARCHIVE tables aren't discoverable after OPTIMIZE

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Description:
      OPTIMIZE TABLE on an ARCHIVE table rewrites the ARZ file.

      It does not copy the FRM stored in the ARZ across. So an ARCHIVE table that has been
      OPTIMIZEd cannot be discovered.

      How to repeat:
      CREATE TABLE t1 (a int) ENGINE=ARCHIVE;
      OPTIMIZE TABLE t1;
      rm t1.frm
      select * from t1;

      You can also verify with archive_reader

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            stewart Stewart Smith added a comment -

            I wrote this patch ages ago for MySQL, so no idea if it still applies (it should though, I don't think anybody has touched that bit of ARCHIVE in years).

            For whatever reason, nobody gives a damn about the MySQL bug.

            Feel free to be responsive and actually apply the patch.
            My July 2009 patch for MySQL
            LPexportBug588599_archive_discover_after_optimize.patch

            Show
            stewart Stewart Smith added a comment - I wrote this patch ages ago for MySQL, so no idea if it still applies (it should though, I don't think anybody has touched that bit of ARCHIVE in years). For whatever reason, nobody gives a damn about the MySQL bug. Feel free to be responsive and actually apply the patch. My July 2009 patch for MySQL LPexportBug588599_archive_discover_after_optimize.patch
            Hide
            stewart Stewart Smith added a comment -

            Re: ARCHIVE tables aren't discoverable after OPTIMIZE
            I wrote this patch ages ago for MySQL, so no idea if it still applies (it should though, I don't think anybody has touched that bit of ARCHIVE in years).

            For whatever reason, nobody gives a damn about the MySQL bug.

            Feel free to be responsive and actually apply the patch.

            Show
            stewart Stewart Smith added a comment - Re: ARCHIVE tables aren't discoverable after OPTIMIZE I wrote this patch ages ago for MySQL, so no idea if it still applies (it should though, I don't think anybody has touched that bit of ARCHIVE in years). For whatever reason, nobody gives a damn about the MySQL bug. Feel free to be responsive and actually apply the patch.
            Hide
            monty Michael Widenius added a comment -

            Re: ARCHIVE tables aren't discoverable after OPTIMIZE
            Fixed pushed into 5.2

            Show
            monty Michael Widenius added a comment - Re: ARCHIVE tables aren't discoverable after OPTIMIZE Fixed pushed into 5.2
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 588599

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

              People

              • Assignee:
                monty Michael Widenius
                Reporter:
                stewart Stewart Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: