Description:
mtr.pl fails to run all tests due to "Could not load ndb_memcache_metadata.sql file" error,
The error looks like:
ndb_memcache.type_numeric w4 [ pass ] 301
ndb_memcache.type_signed w4 [ pass ] 206
ndb_memcache.type_unsigned w2 [ pass ] 3331
ndb_memcache.unique_idx w2 [ pass ] 224
worker[4] mysql-test-run: *** ERROR: Could not load ndb_memcache_metadata.sql file
worker[2] mysql-test-run: *** ERROR: Could not load ndb_memcache_metadata.sql file
Only 17 of 19 completed.
mysql-test-run: *** ERROR: Not all tests completed
Looking in mtr.pl this error is printed when "mysql < ndb_memcache_metadata.sql" fails, the errors are redirected to var/log/memcache_config.log and says:
7.5)$ cat bld/mysql-test/var/2/log/memcache_config.log
ERROR 1062 (23000) at line 249: Duplicate entry 'ndbmemcache-1.2' for key 'PRIMARY'
safe_process[5917]: Child process: 5918, exit: 1
How to repeat:
Occurs on valgrind host in 7.5 but also reproducable locally with "./mtr.pl --suite=ndb_memcache"
Suggested fix:
.