mariadb/mysql-test/suite/perfschema/r
unknown e90f68c0ba MDEV-5657: Parallel replication.
Clean up and improve the parallel implementation code, mainly related to
scheduling of work to threads and handling of stop and errors.

Fix a lot of bugs in various corner cases that could lead to crashes or
corruption.

Fix that a single replication domain could easily grab all worker threads and
stall all other domains; now a configuration variable
--slave-domain-parallel-threads allows to limit the number of
workers.

Allow next event group to start as soon as previous group begins the commit
phase (as opposed to when it ends it); this allows multiple event groups on
the slave to participate in group commit, even when no other opportunities for
parallelism are available.

Various fixes:

 - Fix some races in the rpl.rpl_parallel test case.

 - Fix an old incorrect assertion in Log_event iocache read.

 - Fix repeated malloc/free of wait_for_commit and rpl_group_info objects.

 - Simplify wait_for_commit wakeup logic.

 - Fix one case in queue_for_group_commit() where killing one thread would
   fail to correctly signal the error to the next, causing loss of the
   transaction after slave restart.

 - Fix leaking of pthreads (and their allocated stack) due to missing
   PTHREAD_CREATE_DETACHED attribute.

 - Fix how one batch of group-committed transactions wait for the previous
   batch before starting to execute themselves. The old code had a very
   complex scheduling where the first transaction was handled differently,
   with subtle bugs in corner cases. Now each event group is always scheduled
   for a new worker (in a round-robin fashion amongst available workers).
   Keep a count of how many transactions have started to commit, and wait for
   that counter to reach the appropriate value.

 - Fix slave stop to wait for all workers to actually complete processing;
   before, the wait was for update of last_committed_sub_id, which happens a
   bit earlier, and could leave worker threads potentially accessing bits of
   the replication state that is no longer valid after slave stop.

 - Fix a couple of places where the test suite would kill a thread waiting
   inside enter_cond() in connection with debug_sync; debug_sync + kill can
   crash in rare cases due to a race with mysys_var_current_mutex in this
   case.

 - Fix some corner cases where we had enter_cond() but no exit_cond().

 - Fix that we could get failure in wait_for_prior_commit() but forget to flag
   the error with my_error().

 - Fix slave stop (both for normal stop and stop due to error). Now, at stop
   we pick a specific safe point (in terms of event groups executed) and make
   sure that all event groups before that point are executed to completion,
   and that no event group after start executing; this ensures a safe place to
   restart replication, even for non-transactional stuff/DDL. In error stop,
   make sure that all prior event groups are allowed to execute to completion,
   and that any later event groups that have started are rolled back, if
   possible. The old code could leave eg. T1 and T3 committed but T2 not, or
   it could even leave half a transaction not rolled back in some random
   worker, which would cause big problems when that worker was later reused
   after slave restart.

 - Fix the accounting of amount of events queued for one worker. Before, the
   amount was reduced immediately as soon as the events were dequeued (which
   happens all at once); this allowed twice the amount of events to be queued
   in memory for each single worker, which is not what users would expect.

 - Fix that an error set during execution of one event was sometimes not
   cleared before executing the next, causing problems with the error
   reporting.

 - Fix incorrect handling of thd->killed in worker threads.
2014-02-26 15:02:09 +01:00
..
aggregate.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
all_instances.result MDEV-4984: Implement MASTER_GTID_WAIT() and @@LAST_GTID. 2014-02-07 19:15:28 +01:00
bad_option_1.result WL#2360 Performance schema 2010-01-11 18:47:27 -07:00
bad_option_2.result WL#2360 Performance schema 2010-01-11 18:47:27 -07:00
bad_option_3.result Bug#55873 short startup options do not work in 5.5 2010-08-25 18:59:28 -06:00
bad_option_4.result Bug#55873 short startup options do not work in 5.5 2010-08-25 18:59:28 -06:00
bad_option_5.result Bug#55873 short startup options do not work in 5.5 2010-08-25 18:59:28 -06:00
binlog_mix.result MDEV-26: Global transaction ID 2013-03-26 10:35:34 +01:00
binlog_row.result MDEV-26: Global transaction ID 2013-03-26 10:35:34 +01:00
binlog_stmt.result MDEV-26: Global transaction ID 2013-03-26 10:35:34 +01:00
checksum.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
cnf_option.result WL#2360 Performance schema 2010-01-11 18:47:27 -07:00
column_privilege.result Remove the very old historical but never documented behavior, 2013-10-18 11:38:13 -07:00
ddl_cond_instances.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_events_waits_current.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_events_waits_history.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_events_waits_history_long.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_ews_by_instance.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_ews_by_thread_by_event_name.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_ews_global_by_event_name.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_file_instances.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_fs_by_event_name.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_fs_by_instance.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_mutex_instances.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_performance_timers.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_rwlock_instances.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_setup_consumers.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_setup_instruments.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_setup_timers.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
ddl_threads.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
dml_cond_instances.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_events_waits_current.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_events_waits_history.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_events_waits_history_long.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_ews_by_instance.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_ews_by_thread_by_event_name.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_ews_global_by_event_name.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_file_instances.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_file_summary_by_event_name.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_file_summary_by_instance.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_mutex_instances.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_performance_timers.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_rwlock_instances.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
dml_setup_consumers.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
dml_setup_instruments.result MDEV-5657: Parallel replication. 2014-02-26 15:02:09 +01:00
dml_setup_timers.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
dml_threads.result Added text for errno in error messages by: 2012-05-30 00:37:55 +03:00
func_file_io.result Bug#14072995 - PERFSCHEMA.FUNC_FILE_IO FAILS WITH RESULT CONTENT MISMATCH OCASSIONALLY ON PB2 2012-09-07 11:07:20 +02:00
func_mutex.result Speed up connection time: 2013-03-25 11:13:42 +02:00
global_read_lock.result Merge from mysql-5.5-bugteam to mysql-5.5-runtime 2010-11-12 12:23:17 +01:00
information_schema.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
misc.result error messages: name the storage engine explicitly, 2013-04-09 23:27:07 +02:00
myisam_file_io.result Added procedures to delete records by keys from statistical tables. 2012-07-10 16:34:39 -07:00
no_threads.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
one_thread_per_con.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
pfs_upgrade.result Buildbot fixes and cleanups: 2013-01-11 02:03:43 +02:00
privilege.result Remove the very old historical but never documented behavior, 2013-10-18 11:38:13 -07:00
query_cache.result Bug#13417440 : 63340: ARCHIVE FILE IO NOT INSTRUMENTED 2012-07-03 09:55:51 +05:30
read_only.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
relaylog.result MDEV-26: Global transaction ID. 2013-03-28 10:34:43 +01:00
schema.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
selects.result Fix for 2011-06-16 22:35:01 +02:00
server_init.result 5.3.4 merge 2012-02-15 18:08:08 +01:00
short_option_1.result merge with 5.3 2011-10-19 21:45:18 +02:00
short_option_2.result Bug#55873 short startup options do not work in 5.5 2010-08-25 18:59:28 -06:00
start_server_no_cond_class.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_cond_inst.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_file_class.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_file_inst.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_mutex_class.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_mutex_inst.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_rwlock_class.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_rwlock_inst.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_thread_class.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_thread_inst.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_no_waits_history.result Bug#16060864 SEGMENTATION FAULT IN PERFORMANCE_SCHEMA WITH HISTORY SIZE 0 2013-01-02 11:00:55 +01:00
start_server_no_waits_history_long.result Bug#16060864 SEGMENTATION FAULT IN PERFORMANCE_SCHEMA WITH HISTORY SIZE 0 2013-01-02 11:00:55 +01:00
start_server_nothing.result Bug#16060864 SEGMENTATION FAULT IN PERFORMANCE_SCHEMA WITH HISTORY SIZE 0 2013-01-02 11:00:55 +01:00
start_server_off.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
start_server_on.result Bug#57609 performance_schema does not work with lower_case_table_names 2010-11-03 16:42:33 +01:00
tampered_perfschema_table1.result Merge mysql-5.5-bugteam --> local bugfixing branch 2010-11-08 18:14:30 +01:00
thread_cache.result Bug#56618 Thread_ID is not assigned in ascending sequence (after disconnect) 2010-12-01 11:10:15 +01:00