mariadb/mysql-test/suite/maria
Michael Widenius f0f2072d1f Fixed problem with very slow shutdown when using 100,000 MyISAM tables with delay_key_write
Reason for the problem was that the hash of changed files in the key cache was too small (was 128). Fixed by making the hash size larger and changeable.

- Introduced key-cache-file-hash-size (default 512) for MyISAM and aria_pagecache_file_hash_size (default 512) for Aria.
- Added new status variable "Feature_delay_key_write" which counts number of tables opened that are using delay_key_write


mysql-test/r/features.result:
  Added test of Feature_delay_key_write
mysql-test/r/key_cache.result:
  Updated tests as the number of blocks has changed
mysql-test/r/mysqld--help.result:
  Updated result
mysql-test/suite/maria/maria3.result:
  Updated result
mysql-test/suite/sys_vars/r/key_cache_file_hash_size_basic.result:
  Test new variable
mysql-test/suite/sys_vars/t/aria_pagecache_file_hash_size_basic.test:
  Test new variable
mysql-test/suite/sys_vars/t/key_cache_file_hash_size_basic.test:
  Test new variable
mysql-test/t/features.test:
  Added test of Feature_delay_key_write
mysql-test/t/key_cache.test:
  Updated tests as the number of blocks has changed
mysys/mf_keycache.c:
  Made CHANGED_BLOCKS_HASH dynamic
sql/handler.cc:
  Updated call to init_key_cache()
sql/mysqld.cc:
  Added "Feature_delay_key_write"
  Added support for key-cache-file-hash-size
sql/mysqld.h:
  Added support for key-cache-file-hash-size
sql/sql_class.h:
  Added feature_files_opened_with_delayed_keys
sql/sys_vars.cc:
  Added key_cache_file_hash_size
storage/maria/ha_maria.cc:
  Added pagecache_file_hash_size
  Added counting of files with delay_key_write
storage/maria/ma_checkpoint.c:
  Fixed compiler warning
storage/maria/ma_pagecache.c:
  Made PAGECACHE_CHANGED_BLOCKS_HASH into a variable
storage/maria/ma_pagecache.h:
  Made PAGECACHE_CHANGED_BLOCKS_HASH into a variable
storage/maria/ma_rt_test.c:
  Updated parameters for init_pagecache()
storage/maria/ma_test1.c:
  Updated parameters for init_pagecache()
storage/maria/ma_test2.c:
  Updated parameters for init_pagecache()
storage/maria/ma_test3.c:
  Updated parameters for init_pagecache()
storage/maria/maria_chk.c:
  Updated parameters for init_pagecache()
storage/maria/maria_ftdump.c:
  Updated parameters for init_pagecache()
storage/maria/maria_pack.c:
  Updated parameters for init_pagecache()
storage/maria/maria_read_log.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_pagecache_consist.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_pagecache_rwconsist.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_pagecache_rwconsist2.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_pagecache_single.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_test_loghandler-t.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_test_loghandler_first_lsn-t.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_test_loghandler_max_lsn-t.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_test_loghandler_multigroup-t.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_test_loghandler_multithread-t.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_test_loghandler_noflush-t.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_test_loghandler_nologs-t.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_test_loghandler_pagecache-t.c:
  Updated parameters for init_pagecache()
storage/maria/unittest/ma_test_loghandler_purge-t.c:
  Updated parameters for init_pagecache()
storage/myisam/ha_myisam.cc:
  Added counting of files with delay_key_write
storage/myisam/mi_check.c:
  Updated call to init_key_cache()
storage/myisam/mi_test1.c:
  Updated call to init_key_cache()
storage/myisam/mi_test2.c:
  Updated call to init_key_cache()
storage/myisam/mi_test3.c:
  Updated call to init_key_cache()
storage/myisam/mi_test_all.sh:
  Fixed broken test
storage/myisam/myisam_ftdump.c:
  Updated call to init_key_cache()
storage/myisam/myisamchk.c:
  Updated call to init_key_cache()
storage/myisam/myisamlog.c:
  Updated call to init_key_cache()
2014-07-19 17:46:08 +03:00
..
alter.result 10.0-base merge 2014-02-03 15:22:39 +01:00
alter.test Fixed MDEV-4970: Wrong result with Aria table populated with disabled keys 2014-01-25 15:41:08 +02:00
compat_aliases-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
distinct.result 5.3 merge. 2013-05-20 12:36:30 +02:00
distinct.test 5.3 merge. 2013-05-20 12:36:30 +02:00
group_commit.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
group_commit.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
icp.result Fixed MDEV-3815: Aria engine return "The table is full" (ERROR 1114) inserting record, while MyISAM and InnoDB doesn't 2014-02-11 19:40:33 +02:00
icp.test Moved maria tests to suite/maria 2012-05-16 18:46:02 +03:00
lock.result More trivial test result updates 2013-07-08 18:29:52 +04:00
lock.test Fixed MDEV-366: Assertion `share->reopen == 1' failed in maria_extra on DROP TABLE which is locked twice 2012-08-15 14:37:55 +03:00
locking.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
locking.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-autozerofill.result When one does 'REPAIR TABLE', update uuid() to the current system 2013-05-14 18:32:16 +03:00
maria-autozerofill.test When one does 'REPAIR TABLE', update uuid() to the current system 2013-05-14 18:32:16 +03:00
maria-big.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-big.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-big2.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-big2.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-connect.result MDEV-26: Global transaction ID 2013-03-26 10:35:34 +01:00
maria-connect.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-gis-recovery.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-gis-recovery.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-gis-recovery.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-gis-rtree-dynamic.result 10.0-monty merge 2013-07-21 16:39:19 +02:00
maria-gis-rtree-dynamic.test merge with mysql-5.5.30 minus few incorrect or not applicable changesets 2013-02-28 18:42:49 +01:00
maria-gis-rtree-trans.result 10.0-monty merge 2013-07-21 16:39:19 +02:00
maria-gis-rtree-trans.test merge with mysql-5.5.30 minus few incorrect or not applicable changesets 2013-02-28 18:42:49 +01:00
maria-gis-rtree.result 10.0-monty merge 2013-07-21 16:39:19 +02:00
maria-gis-rtree.test merge with mysql-5.5.30 minus few incorrect or not applicable changesets 2013-02-28 18:42:49 +01:00
maria-mvcc.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-mvcc.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-no-logging.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-no-logging.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-page-checksum.result fix for maria.maria test 2013-07-13 22:29:17 +02:00
maria-page-checksum.test fix for maria.maria test 2013-07-13 22:29:17 +02:00
maria-partitioning.result Post-merge buildbot fixes: 2013-07-05 19:57:48 +04:00
maria-partitioning.test Fixed LP:990187 Assertion `share->reopen == 1' failed at maria_extra on ADD PARTITION 2012-05-16 22:04:48 +03:00
maria-preload.result Fixed MDEV-3815: Aria engine return "The table is full" (ERROR 1114) inserting record, while MyISAM and InnoDB doesn't 2014-02-11 19:40:33 +02:00
maria-preload.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-purge.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-purge.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recover-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recover.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recover.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-big-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-big.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-big.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-bitmap-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-bitmap.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-bitmap.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-rtree-ft-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery-rtree-ft.result merge with mysql-5.5.30 minus few incorrect or not applicable changesets 2013-02-28 18:42:49 +01:00
maria-recovery-rtree-ft.test merge with mysql-5.5.30 minus few incorrect or not applicable changesets 2013-02-28 18:42:49 +01:00
maria-recovery.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery2-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery2.result 5.5 merge 2013-06-06 17:51:28 +02:00
maria-recovery2.test 5.5 merge 2013-06-06 17:51:28 +02:00
maria-recovery3-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery3.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-recovery3.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria-ucs2.result fix the maria suite 2013-07-12 23:07:32 +02:00
maria-ucs2.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria.result Fixed MDEV-3815: Aria engine return "The table is full" (ERROR 1114) inserting record, while MyISAM and InnoDB doesn't 2014-02-11 19:40:33 +02:00
maria.test Fixed MDEV-3815: Aria engine return "The table is full" (ERROR 1114) inserting record, while MyISAM and InnoDB doesn't 2014-02-11 19:40:33 +02:00
maria2.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria2.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria3.result Fixed problem with very slow shutdown when using 100,000 MyISAM tables with delay_key_write 2014-07-19 17:46:08 +03:00
maria3.test fix the maria suite 2013-07-12 23:07:32 +02:00
maria_notembedded.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria_notembedded.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria_partition.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria_partition.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria_showlog_error.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
maria_showlog_error.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
max_length.result Update test results to fix trivial test failures in parts testsuite 2013-07-07 14:09:52 +04:00
max_length.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
mrr.result Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
mrr.test Moved maria tests to suite/maria 2012-05-16 18:46:02 +03:00
optimize.result Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
optimize.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
ps_maria.result MDEV-6287 Bad warning level when inserting a DATETIME value into a TIME column 2014-06-02 12:33:17 +04:00
ps_maria.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
small_blocksize-master.opt Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
small_blocksize.result Post-merge buildbot fixes: 2013-07-05 19:57:48 +04:00
small_blocksize.test Created suites for heap, archive and csv. 2012-04-04 00:16:38 +03:00
suite.pm Fixed lp:902654 "MariaDB consistently crashes in collect_tables on Aria checkpoint execution" 2012-02-20 14:03:44 +02:00
truncate.result Fixed MDEV-3890: Server crash inserting record on a temporary table after truncating it 2013-01-25 21:40:42 +02:00
truncate.test Fixed MDEV-3890: Server crash inserting record on a temporary table after truncating it 2013-01-25 21:40:42 +02:00