Bug #58318 Version number replacement is incomplete in test "ndb_mgm"
Submitted: 19 Nov 2010 10:47
Reporter: Joerg Bruehe Email Updates:
Status: Verified Impact on me:
None 
Category:Tests: Cluster Severity:S3 (Non-critical)
Version:7.1.9a OS:Any
Assigned to: CPU Architecture:Any

[19 Nov 2010 10:47] Joerg Bruehe
Description:
This test failure occurred in the build of the cluster-7.1.9a release:

=====
ndb.ndb_mgm                              [ retry-fail ]
        Test ended at YYYY-MM-DD HH:MM:SS

CURRENT_TEST: ndb.ndb_mgm
--- /PATH/mysql-test/suite/ndb/r/ndb_mgm.result
+++ /PATH/mysql-test/suite/ndb/r/ndb_mgm.reject
@@ -1,19 +1,19 @@
 Cluster Configuration
 ---------------------
 [ndbd(NDB)]    2 node(s)
-id=1   @127.0.0.1  (MYSQL_VERSION NDB_VERSION, Nodegroup: 0, Master)
-id=2   @127.0.0.1  (MYSQL_VERSION NDB_VERSION, Nodegroup: 0)
+id=1   @127.0.0.1  (MYSQL_VERSION ndb-7.1.9, Nodegroup: 0, Master)
+id=2   @127.0.0.1  (MYSQL_VERSION ndb-7.1.9, Nodegroup: 0)

 [ndb_mgmd(MGM)]    1 node(s)
-id=3   @127.0.0.1  (MYSQL_VERSION NDB_VERSION)
+id=3   @127.0.0.1  (MYSQL_VERSION ndb-7.1.9)

 [mysqld(API)]  14 node(s)
-id=16  @127.0.0.1  (MYSQL_VERSION NDB_VERSION)
-id=32  @127.0.0.1  (MYSQL_VERSION NDB_VERSION)
-id=48  @127.0.0.1  (MYSQL_VERSION NDB_VERSION)
-id=49  @127.0.0.1  (MYSQL_VERSION NDB_VERSION)
-id=63  @127.0.0.1  (MYSQL_VERSION NDB_VERSION)
-id=127 @127.0.0.1  (MYSQL_VERSION NDB_VERSION)
+id=16  @127.0.0.1  (MYSQL_VERSION ndb-7.1.9)
+id=32  @127.0.0.1  (MYSQL_VERSION ndb-7.1.9)
+id=48  @127.0.0.1  (MYSQL_VERSION ndb-7.1.9)
+id=49  @127.0.0.1  (MYSQL_VERSION ndb-7.1.9)
+id=63  @127.0.0.1  (MYSQL_VERSION ndb-7.1.9)
+id=127 @127.0.0.1  (MYSQL_VERSION ndb-7.1.9)
 id=192 (not connected, accepting connect from localhost)
 id=228 (not connected, accepting connect from localhost)
 id=229 (not connected, accepting connect from localhost)

mysqltest: Result content mismatch
=====

Note that the "reject" log contains the numeric part of the version only, not the appended letter "a" which was needed for this rebuild with bug fix.

How to repeat:
Set version to "7.1.9a" and try.

Suggested fix:
Change the string replacement logic to include that trailing letter.
[11 Oct 2011 18:32] Steven Ayre
This also appears to affect 7.1.15a. This also has an 'a' suffix so is probably the same problem.