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

Add page id matching check in innochecksum tool

Details

    Description

      Add the condition in InnoChecksum tool to check whether page number stored in the disk
      matches with in-memory page number we count during tablespace read. This could
      catch the write corruption caused by InnoDB.

      Attachments

        Issue Links

          Activity

            I believe that is_page_corrupted() in innochecksum() should be refined and tested a little more:

            1. It should check that all tablespace ID on the nonzero pages of a data file are the same.
            2. Test with a multi-file system tablespace. Other than the first files could start with all-zero pages, so we would seem to need the following kind of logic:
            • Read the tablespace ID and page number from the first not-all-zero page. (We may have to assume innodb_page_size=16k in this case.)
            • For subsequent not-all-zero pages, the tablespace ID must match, and the page number must be consistent.

            OK to push after these changes.

            marko Marko Mäkelä added a comment - I believe that is_page_corrupted() in innochecksum() should be refined and tested a little more: It should check that all tablespace ID on the nonzero pages of a data file are the same. Test with a multi-file system tablespace. Other than the first files could start with all-zero pages, so we would seem to need the following kind of logic: Read the tablespace ID and page number from the first not-all-zero page. (We may have to assume innodb_page_size=16k in this case.) For subsequent not-all-zero pages, the tablespace ID must match, and the page number must be consistent. OK to push after these changes.

            People

              thiru Thirunarayanan Balathandayuthapani
              thiru Thirunarayanan Balathandayuthapani
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.