Bug #21279 ndb_binlog_ignore_db.test fails randomly
Submitted: 25 Jul 2006 16:28 Modified: 1 Sep 2006 8:14
Reporter: Ingo Strüwing Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Cluster: Replication Severity:S2 (Serious)
Version:5.1.12 OS:Linux (Linux)
Assigned to: Jonas Oreland CPU Architecture:Any

[25 Jul 2006 16:28] Ingo Strüwing
Description:
ndb_binlog_discover            [ pass ]          27903
ndb_binlog_ignore_db           [ pass ]         125173
-------------------------------------------------------
Ending Tests
Shutting-down MySQL daemon

Master(s) shutdown finished
Slave(s) shutdown finished
All 2 tests were successful.
mysql-test-run: WARNING: Got errors/warnings while running tests, please examine "/nfstmp1/ingo/autopush-76/mysql-5.1/mysql-test/var/log/warnings" for details.

mysql-test-run: *** ERROR: there where failing test cases

The warnings file contains:
Attempting backtrace. You can use the following information to find out

This comes from mysql-test/var/log/master1.err:
CURRENT_TEST: ndb_binlog_ignore_db
...
mysqld got signal 6;
...
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...

The backtrace retrieved with gdb:
...
ndb_binlog_thread_func()
ndb_binlog_thread_handle_schema_event_post_epoch()
ndbcluster_update_slock()
{
  ...
  NDBDICT *dict= ndb->getDictionary();
  Ndb_table_guard ndbtab_g(dict, NDB_SCHEMA_TABLE);
  const NDBTAB *ndbtab= ndbtab_g.get_table();
  ...
  if (ndbtab == 0)
  {
    abort();

How to repeat:
BUILD/compile-pentium-debug-max
cd mysql-test
./mysql-test-run.pl ndb_binlog_discover ndb_binlog_ignore_db

You may need to repeat the last step a couple of times. For me it happend about every third time on production.mysql.com. I did not see it when trying ndb_binlog_ignore_db alone, but I may not have tried often enough.
[9 Aug 2006 17:43] Jonas Oreland
try this with/without patch for bug bug#21363
[22 Aug 2006 11:14] Jonas Oreland
tried this 20 in loop (with other patch applied) wo/ problem.
[23 Aug 2006 13:26] Jonas Oreland
seems to be fixed by other patch
[1 Sep 2006 8:14] Jonas Oreland
puhsed to 5.1.12, nothing to document