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

add the ability to fix corrupted pages on --prepare

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Fix Version/s: N/A
    • Component/s: Backup
    • Labels:
      None

      Description

      In the general case, we cannot know if innodb dataset is corrupted until applying the log.

      Particularly, in MDEV-21109 there are pages which do not pass corruption test, but they are in free tablespace list, so it does not matter of they pass the test or not. We can't detect if they are allocated or not during backup, but we can do this during --prepare.

      So we could log such allegedly corrupted pages during backup, and then try to fix them during --prepare. Particularly we could zero out pages which are in tablespace free list.

      We should also think how to log such allegedly corrupted pages to make older mariabackup versions to refuse --prepare on dataset with the log.

      We should also change documentation to reflect the fact that backup can be treated as non corrupted one if it is not prepared. We could stream backup, and some external tool can be used to upload it in some cloud. So the uploaded backup can not be safe until it is prepared.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              vlad.lesin Vladislav Lesin
              Reporter:
              vlad.lesin Vladislav Lesin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Git Integration