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

aria_pack does not work on multiple tables, can't initialize page cache

    XMLWordPrintable

Details

    Description

      Both documentation and aria_pack help claim that it can be given multiple tables as arguments. However, when it's done, it fails with "Can't initialize page cache" error.

      --source include/have_sequence.inc
       
      --let $datadir= `select @@datadir`
      create table t1 (a int primary key, c char(64), key(c)) engine=Aria;
      create table t2 (a int primary key, c char(64), key(c)) engine=Aria;
      insert into t1 select seq, repeat('a',64) from seq_1_to_1000;
      insert into t2 select seq, repeat('a',64) from seq_1_to_1000;
       
      --source include/shutdown_mysqld.inc
      --exec $MARIA_PACK --datadir=$datadir $datadir/test/t1.MAI $datadir/test/t2.MAI
      --source include/start_mysqld.inc
       
      drop table t1, t2;
      

      main 4b79d7b8ee557d53a859aedec839b8673585b514

      create table t1 (a int primary key, c char(64), key(c)) engine=Aria;
      create table t2 (a int primary key, c char(64), key(c)) engine=Aria;
      insert into t1 select seq, repeat('a',64) from seq_1_to_1000;
      insert into t2 select seq, repeat('a',64) from seq_1_to_1000;
      bug.t1                                   [ fail ]
              Test ended at 2025-06-02 01:48:56
       
      CURRENT_TEST: bug.t1
      Can't initialize page cache
      Aborted: /share8t/bld/main-rel/mysql-test/var/mysqld.1/data/test/t2.MAD is not compressed
      mysqltest: At line 10: exec of '/share8t/bld/main-rel/storage/maria/aria_pack --datadir=/share8t/bld/main-rel/mysql-test/var/mysqld.1/data/ /share8t/bld/main-rel/mysql-test/var/mysqld.1/data//test/t1.MAI /share8t/bld/main-rel/mysql-test/var/mysqld.1/data//test/t2.MAI' failed, error: 512, status: 2, errno: 32
      Output from before failure:
      Remember to run aria_chk -rq on compressed tables
      

      Attachments

        Activity

          People

            monty Michael Widenius
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: