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

InnoDB redo log apply fails to adjust data file sizes

Details

    • 10.2.4-5

    Description

      Prepare of partial backup (with --tables option) sporadically fails with following error :

      InnoDB: Error: tablespace size stored in header is 4864 pages, but
      InnoDB: the sum of data file sizes is only 768 pages
      InnoDB: Cannot start InnoDB. The tail of the system tablespace is
      InnoDB: missing.

      Attached are:
      test_partial_uncommitted.sh - test which reliably demonstrates the problem in my environment
      test_partial_uncommitted.log - corresponding log
      my.cnf - config used
      partial_uncommitted.test 'identical' mtr test, which DOES NOT demonstrate the problem (for unknown reasons (generated xtrabackup_info and backup-my.cnf are identical to .sh test).

      Interesting observation is that all tables are backed up - this should be another bug eventually if not fixed as part of this.

      Attachments

        1. my.cnf
          0.3 kB
        2. partial_uncommitted.test
          0.5 kB
        3. problem.tar.gz
          8.89 MB
        4. test_partial_uncommitted.log
          25 kB
        5. test_partial_uncommitted.sh
          0.7 kB

        Issue Links

          Activity

            anikitin Andrii Nikitin (Inactive) created issue -
            anikitin Andrii Nikitin (Inactive) made changes -
            Field Original Value New Value
            Attachment test_partial_uncommitted.log [ 42995 ]
            Attachment test_partial_uncommitted.sh [ 42996 ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Attachment my.cnf [ 42997 ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Attachment partial_uncommitted.test [ 42998 ]
            wlad Vladislav Vaintroub made changes -
            Fix Version/s 10.1 [ 16100 ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Attachment problem.tar.gz [ 43000 ]
            marko Marko Mäkelä made changes -
            Assignee Vladislav Vaintroub [ wlad ] Marko Mäkelä [ marko ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Attachment error.txt [ 43008 ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Comment [ ok, it looks that the real problem in this and some similar phantoms is that for some reasons Xtradb and InnoDB start/initialize several times inside mysqld in my builds. (See attached mysqld error log Errors.txt). That may explain 'too late checks' as well probably. Not sure how that might happen, but it looks 'proper' builds are not affected.

            Suggest closing as invalid, unless somebody wants to investigate how that build may happen at all. ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Attachment error.txt [ 43008 ]
            marko Marko Mäkelä made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Sprint 10.2.4-5 [ 125 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Rank Ranked higher
            marko Marko Mäkelä made changes -
            Summary Prepare of partial backup fails "tablespace size stored in header is 4864 pages, but the sum of data file sizes is only 768" InnoDB redo log apply fails to adjust data file sizes
            marko Marko Mäkelä made changes -
            Assignee Marko Mäkelä [ marko ] Jan Lindström [ jplindst ]
            Status In Progress [ 3 ] In Review [ 10002 ]
            jplindst Jan Lindström (Inactive) made changes -
            Assignee Jan Lindström [ jplindst ] Marko Mäkelä [ marko ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            marko Marko Mäkelä made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            marko Marko Mäkelä made changes -
            Status In Progress [ 3 ] In Review [ 10002 ]
            jplindst Jan Lindström (Inactive) made changes -
            Assignee Marko Mäkelä [ marko ] Jan Lindström [ jplindst ]
            jplindst Jan Lindström (Inactive) made changes -
            Assignee Jan Lindström [ jplindst ] Marko Mäkelä [ marko ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            marko Marko Mäkelä made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            marko Marko Mäkelä made changes -
            issue.field.resolutiondate 2016-12-30 11:49:58.0 2016-12-30 11:49:58.745
            marko Marko Mäkelä made changes -
            Component/s Storage Engine - InnoDB [ 10129 ]
            Fix Version/s 10.1.21 [ 22113 ]
            Fix Version/s 10.2.4 [ 22116 ]
            Fix Version/s 10.1 [ 16100 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 78752 ] MariaDB v4 [ 151370 ]
            marko Marko Mäkelä made changes -

            People

              marko Marko Mäkelä
              anikitin Andrii Nikitin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.