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

MariaBackup crashes in common_engine::BackupImpl::copy_engine_binlogs

    XMLWordPrintable

Details

    Description

      bb-12.3-release 21a0714a118614982d20bfa504763d7247800091

      (rr) bt
      #0  __GI___readdir64 (dirp=0x0) at ../sysdeps/unix/sysv/linux/readdir64.c:37
      #1  0x0000559fb19ba0bc in os_file_readdir_next_file (dirname=0x7ffc8389e2a0 "binlogs", dir=0x0, info=0x7ffc8389d1a0)
          at /home/binlog/MDEV-x/bb-12.3-release/extra/mariabackup/xtrabackup.cc:4179
      #2  0x0000559fb1a1d147 in foreach_file_in_datadir(char const*, std::function<bool (char const*)>) (dir_path=0x7ffc8389e2a0 "binlogs", func=...)
          at /home/binlog/MDEV-x/bb-12.3-release/extra/mariabackup/backup_copy.cc:2408
      #3  0x0000559fb1a4ca50 in common_engine::BackupImpl::copy_engine_binlogs (this=0x559fb4b17bb0, binlog_dir=0x559fb49aa148 "binlogs", backup_lsn=4735050)
          at /home/binlog/MDEV-x/bb-12.3-release/extra/mariabackup/common_engine.cc:503
      #4  0x0000559fb1a4d00a in common_engine::Backup::copy_engine_binlogs (this=0x7ffc8389e768, binlog_dir=0x559fb49aa148 "binlogs", backup_lsn=4735050)
          at /home/binlog/MDEV-x/bb-12.3-release/extra/mariabackup/common_engine.cc:559
      #5  0x0000559fb19cdd21 in BackupStages::do_backup_binlogs (this=0x7ffc8389e590) at /home/binlog/MDEV-x/bb-12.3-release/extra/mariabackup/xtrabackup.cc:5440
      #6  0x0000559fb19cdeb5 in BackupStages::stage_end (this=0x7ffc8389e590, backup_datasinks=...) at /home/binlog/MDEV-x/bb-12.3-release/extra/mariabackup/xtrabackup.cc:5476
      #7  0x0000559fb19bd341 in xtrabackup_backup_func () at /home/binlog/MDEV-x/bb-12.3-release/extra/mariabackup/xtrabackup.cc:5735
      #8  0x0000559fb19c61dc in main_low (argv=0x559fb47caee8) at /home/binlog/MDEV-x/bb-12.3-release/extra/mariabackup/xtrabackup.cc:7945
      #9  0x0000559fb19c58b4 in main (argc=9, argv=0x7ffc8389ebc8) at /home/binlog/MDEV-x/bb-12.3-release/extra/mariabackup/xtrabackup.cc:7732
      

      MariaDB/randgen 76f49601c5da1c86f21b924062144c3235d489d1

      perl ./run.pl --base-port=14000 --basedir=/home/binlog/MDEV-x/bb-12.3-release --compatibility=120399 --duration=100 --engine=InnoDB --filter=conf/ff/restrict_dynamic_vars.ff --filter=conf/preview/to_date.ff --gendata=simple  --grammar=conf/yy/dml.yy --grammar=conf/yy/indexes_and_constraints.yy --grammar=conf/yy/partition_by_range.yy --mysqld=--create-tmp-table-binlog-formats=MIXED,STATEMENT  --mysqld=--innodb-lock-wait-timeout=15 --mysqld=--lock-wait-timeout=30 --mysqld=--loose-binlog-directory=binlogs --mysqld=--max-statement-time=60 --mysqld=--transaction-isolation=READ-COMMITTED --queries=1000000 --reporters=Backtrace,Deadlock --rr --scenario=MariaBackupFull --threads=6 --vardir=/home/binlog/MDEV-x/var-rr2 --seed=1770728677
      

      The test does not actually use the new binlog, but it uses binlog-directory option which appears to be important. The test generates several tables with lots of partitions (over a thousand partitions total). It is possible that it hits some OS limit, although I raised the ulimit -n to 128K and the failure still happens.

      The failure is rr-able, an rr profile will be provided.

      Attachments

        Issue Links

          Activity

            People

              knielsen Kristian Nielsen
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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