mariadb/mysql-test/suite
Brandon Nesterenko 5290fa043b MDEV-35109 PREP: simulate_delay_semisync_slave_reply use debug_sync
This is a preparatory commit for MDEV-35109 to make its
testing code cleaner (and harden other tests too).

The DEBUG_DBUG point simulate_delay_semisync_slave_reply
up to this patch used my_sleep() to delay an ACK response,
but sleeps are prone to test failures on machines that
run tests when already having a heavy load (e.g. on
buildbot).

This patch changes this DEBUG_DBUG sleep to use DEBUG_SYNC
to coordinate exactly when a slave should send its reply,
which is safer and faster.

As DEBUG_SYNC can't be used while a server is shutting
down, to synchronize threads with SHUTDOWN WAIT FOR SLAVES
logic, we use and extend wait_for_pattern_in_file.inc to
wait for an informational error message in the logic to
indicate that the shutdown process has reached the
intended state (i.e. indicating that the shutdown has
been delayed to await semi-sync ACKs). Specifically, the
extensions are as follows:

 1. wait_for_pattern_in_file.inc is extended with parameter
    wait_for_pattern_count as a number that indicates the
    number of times a pattern should occur in the file before
    return control back to the calling script.

 2. search_for_pattern_in_file.inc is extended with parameter
    SEARCH_ABORT_IS_SUCCESS to inverse the error/success
    logic, so the SEARCH_ABORT condition can be used to
    indicate success, rather than error.
2024-11-04 10:45:58 -07:00
..
archive Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
atomic
binlog Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
binlog_encryption Merge branch '10.5' into 10.6 2024-07-18 16:25:33 +02:00
client
compat MDEV-34679 ER_BAD_FIELD uses non-localizable substrings 2024-10-17 21:37:37 +02:00
csv Backporting bugs fixes fixed by MDEV-31340 from 11.5 2024-05-21 14:58:01 +04:00
encryption MDEV-34830: LSN in the future is not being treated as serious corruption 2024-10-17 17:24:20 +03:00
engines Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
federated Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
funcs_1 MDEV-34679 ER_BAD_FIELD uses non-localizable substrings 2024-10-17 21:37:37 +02:00
funcs_2
galera Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
galera_3nodes Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
galera_3nodes_sr Merge branch 10.5 into 10.6 2024-07-09 11:56:47 +02:00
galera_sr MDEV-34836: TOI on parent table must BF abort SR in progress on a child 2024-09-24 11:14:01 +02:00
gcol Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
handler MDEV-34679 ER_BAD_FIELD uses non-localizable substrings 2024-10-17 21:37:37 +02:00
heap
innodb Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
innodb_fts Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
innodb_gis Merge branch '10.5' into 10.6 2024-10-15 16:00:44 +11:00
innodb_i_s
innodb_zip MDEV-34830: LSN in the future is not being treated as serious corruption 2024-10-17 17:24:20 +03:00
jp
json MDEV-34679 ER_BAD_FIELD uses non-localizable substrings 2024-10-17 21:37:37 +02:00
large_tests fix failing large_tests.maria_recover_encrypted 2024-04-22 17:22:11 +02:00
maria MDEV-34679 ER_BAD_FIELD uses non-localizable substrings 2024-10-17 21:37:37 +02:00
mariabackup MDEV-34830: LSN in the future is not being treated as serious corruption 2024-10-17 17:24:20 +03:00
mtr/t
mtr2
multi_source Merge 10.5 into 10.6 2024-04-17 14:14:58 +03:00
optimizer_unfixed_bugs
parts Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
perfschema Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
perfschema_stress
period Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
plugins MDEV-34679 ER_BAD_FIELD uses non-localizable substrings 2024-10-17 21:37:37 +02:00
roles Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
rpl MDEV-35109 PREP: simulate_delay_semisync_slave_reply use debug_sync 2024-11-04 10:45:58 -07:00
s3 MDEV-34867 engine S3 cause 500 error for huawei buckets 2024-09-11 16:15:37 +03:00
sql_sequence Merge branch '10.5' into 10.6 2024-10-29 14:20:03 +01:00
storage_engine
stress MDEV-34453 Trying to read 16384 bytes at 70368744161280 outside the bounds of the file: ./ibdata1 2024-09-20 20:26:43 +05:30
sys_vars MDEV-34690 lock_rec_unlock_unmodified() causes deadlock 2024-10-23 12:36:17 +03:00
sysschema Merge 10.5 into 10.6 2024-03-12 09:19:57 +02:00
unit
vcol Merge 10.5 into 10.6 2024-10-03 09:31:39 +03:00
versioning MDEV-34679 ER_BAD_FIELD uses non-localizable substrings 2024-10-17 21:37:37 +02:00
wsrep Merge branch '10.5' into '10.6' 2024-09-01 06:51:25 +02:00