Bug #8418 test: fulltext [ fail ] but mysql shells says ok..
Submitted: 10 Feb 2005 14:48 Modified: 6 May 2005 11:53
Reporter: hilmar burghgraaff Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:mysql-standard-4.1.8-pc-linux-i686-icc-g OS:Linux (gentoo (linux))
Assigned to: Lenz Grimmer CPU Architecture:Any

[10 Feb 2005 14:48] hilmar burghgraaff
Description:
when installed in a chroot environment and running "./mysql-test-run" 

1 out of the 268 tests fails with the statement:

fulltext                       [ fail ] 
  
Errors are (from /home/hib/src/mysql-standard-4.1.8-pc-linux-i686-icc-glibc23/mysql-test/var/log/mysqltest-time) : 
 /home/hib/src/mysql-standard-4.1.8-pc-linux-i686-icc-glibc23/bin/mysqltest: At line 324: Result length mismatch 
 (the last lines may be the most important ones) 
 Below are the diffs between actual and expected results: 
 ------------------------------------------------------- 
 *** r/fulltext.result   Tue Dec 14 17:43:29 2004 
 --- r/fulltext.reject   Thu Feb 10 16:51:35 2005 
 *************** 
 *** 394,399 **** 
 --- 394,401 ---- 
   INSERT INTO t1 VALUES ('Jesses Hasse Ling and his syncopators of Swing'); 
   REPAIR TABLE t1; 
   Table Op      Msg_type        Msg_text 
 + test.t1       repair  error   22 when fixing table 
 + test.t1       repair  warning Number of rows changed from 0 to 1 
   test.t1       repair  status  OK 
   select count(*) from t1; 
   count(*) 
 ------------------------------------------------------- 

The SQL statements thrown at the db server are (from the log):

29 Query       CREATE TABLE t1 (h text, FULLTEXT (h));
29 Query       INSERT INTO t1 VALUES ('Jesses Hasse Ling and his syncopators of Swing') 
29 Query       REPAIR TABLE t1
29 Query       select count(*) from t1
29 Query       drop table t1

when reproduced in a mysql shell:

mysql> CREATE TABLE t1 (h text, FULLTEXT (h));
Query OK, 0 rows affected (0.00 sec)

mysql> INSERT INTO t1 VALUES ('Jesses Hasse Ling and his syncopators of Swing') ;
Query OK, 1 row affected (0.00 sec)

mysql> select * from t1;
+------------------------------------------------+
| h                                              |
+------------------------------------------------+
| Jesses Hasse Ling and his syncopators of Swing |
+------------------------------------------------+
1 row in set (0.00 sec)

mysql> select count(*) from t1;
+----------+
| count(*) |
+----------+
|        1 |
+----------+
1 row in set (0.00 sec)

mysql> repair table t1;
050210 15:17:59 [Note] Retrying repair of: './test/t1' with keycache
+---------+--------+----------+------------------------------------+
| Table   | Op     | Msg_type | Msg_text                           |
+---------+--------+----------+------------------------------------+
| test.t1 | repair | error    | 22 when fixing table               |
| test.t1 | repair | warning  | Number of rows changed from 0 to 1 |
| test.t1 | repair | status   | OK                                 |
+---------+--------+----------+------------------------------------+
3 rows in set (0.00 sec)

mysql> select * from t1;
+------------------------------------------------+
| h                                              |
+------------------------------------------------+
| Jesses Hasse Ling and his syncopators of Swing |
+------------------------------------------------+
1 row in set (0.00 sec)

mysql> select count(*) from t1 ;
+----------+
| count(*) |
+----------+
|        1 |
+----------+
1 row in set (0.00 sec)

it seems like the opperation of the DB is correct and the test script cannot handle the output.

can annyone verrify that this is the case.

regards hilmar

How to repeat:
Installed a secondary copy on our test server.

This resulted in the same behavoir.

note: all installations are chrooted.

Suggested fix:
add the output to the mysql-test script.
[10 Feb 2005 18:01] MySQL Verification Team
I tested the fulltext test on Slackware 10.0 with latest BK source 4.1
and the test passed.
[10 Feb 2005 18:04] MySQL Verification Team
Sorry I wasn't noticed it is icc binary. So disregard my last post.
[10 Feb 2005 20:45] Lenz Grimmer
That's a known and reported icc 8.0 compiler bug - we will check if icc 8.1 has resolved this problem.
[12 Apr 2005 8:49] Lenz Grimmer
Will retest with icc-8.1 once BUG#9063 has been resolved.
[6 May 2005 11:53] Lenz Grimmer
Verified to be fixed with the latest icc 8.1 compiler (l_cc_pc_8.1.030)