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

InnoDB scrubbing doesn't write zero while freeing the extent

    XMLWordPrintable

Details

    Description

      InnoDB fails to mark the page status as FREED during freeing of an extent of a segment.
      This behaviour affects scrubbing and doesn't write all zeroes in file even though
      pages are freed.

       
              fsp_free_extent(space, page, mtr);
            
              for (uint32_t i = 0; i < FSP_EXTENT_SIZE; i++) {
                      if (!xdes_is_free(descr, i)) {
                              buf_page_free(space, first_page_in_extent + i, mtr,
                                            __FILE__, __LINE__);
                      }
              }
      
      

      Above fsp_free_extent() calls xdes_init() and reinitialize all bitmap of
      the extent descriptor page. After that, we rely on bitmap of extent descriptor
      page to call buf_page_free()

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 6.5h
                  6.5h

                  Git Integration

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