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

main.repair_symlink-5543 fails on FreeBSD with a wrong error code

Details

    Description

      Other versions are likely affected too, I didn't check

      CURRENT_TEST: main.repair_symlink-5543
      --- /usr/home/ec2-user/mariadb-server/mysql-test/main/repair_symlink-5543.result	2022-02-02 01:36:25.000000000 +0000
      +++ /usr/home/ec2-user/mariadb-server/mysql-test/main/repair_symlink-5543.reject	2022-02-02 18:05:08.694351000 +0000
      @@ -4,15 +4,15 @@
       # while others don't have openat and fail with errcode 20.
       repair table t1;
       Table	Op	Msg_type	Msg_text
      -test.t1	repair	error	20 for record at pos 0
      -test.t1	repair	Error	File 'MYSQL_TMP_DIR/t1.MYD' not found (Errcode: 20 "<errmsg>")
      +test.t1	repair	error	31 for record at pos 0
      +test.t1	repair	Error	File 'MYSQL_TMP_DIR/t1.MYD' not found (Errcode: 31 "<errmsg>")
       test.t1	repair	status	Operation failed
       drop table t1;
       create table t2 (a int) engine=aria data directory='MYSQL_TMP_DIR';
       insert t2 values (1);
       repair table t2;
       Table	Op	Msg_type	Msg_text
      -test.t2	repair	error	20 for record at pos 256
      -test.t2	repair	Error	File 'MYSQL_TMP_DIR/t2.MAD' not found (Errcode: 20 "<errmsg>")
      +test.t2	repair	error	31 for record at pos 256
      +test.t2	repair	Error	File 'MYSQL_TMP_DIR/t2.MAD' not found (Errcode: 31 "<errmsg>")
       test.t2	repair	status	Operation failed
       drop table t2;
       
      mysqltest: Result content mismatch
      

      The fix is simple, as the test already has a regex substitution for some error codes, just not for this one, but the correctness of this one needs to be checked first.

      Attachments

        Issue Links

          Activity

            elenst Elena Stepanova created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            Environment FreeBSD 13

            This is a duplicate of MDEV-23920 main.repair_symlink-5543 fails with "Errcode: 249" when " Errcode: 20" is expected on alpha and hppa, just with another error code.

            otto Otto Kekäläinen added a comment - This is a duplicate of MDEV-23920 main.repair_symlink-5543 fails with "Errcode: 249" when " Errcode: 20" is expected on alpha and hppa , just with another error code.
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            Fix Version/s N/A [ 14700 ]
            Fix Version/s 10.5 [ 23123 ]
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Closed [ 6 ]

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              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.