[MDEV-27726] main.repair_symlink-5543 fails on FreeBSD with a wrong error code Created: 2022-02-02  Updated: 2022-03-09  Resolved: 2022-03-09

Status: Closed
Project: MariaDB Server
Component/s: Platform FreeBSD, Server, Tests
Affects Version/s: 10.5
Fix Version/s: N/A

Type: Bug Priority: Trivial
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Duplicate Votes: 0
Labels: None
Environment:

FreeBSD 13


Issue Links:
Duplicate
is duplicated by MDEV-23920 main.repair_symlink-5543 fails with "... Open

 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.



 Comments   
Comment by Otto Kekäläinen [ 2022-02-26 ]

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.

Generated at Thu Feb 08 09:55:06 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.