mariadb/mysql-test/suite/binlog/include
Vladislav Vaintroub 061adae9a2 MDEV-16944 Fix file sharing issues on Windows in mysqltest
On Windows systems, occurrences of ERROR_SHARING_VIOLATION due to
conflicting share modes between processes accessing the same file can
result in CreateFile failures.

mysys' my_open() already incorporates a workaround by implementing
wait/retry logic on Windows.

But this does not help if files are opened using shell redirection like
mysqltest traditionally did it, i.e via

--echo exec "some text" > output_file

In such cases, it is cmd.exe, that opens the output_file, and it
won't do any sharing-violation retries.

This commit addresses the issue by introducing a new built-in command,
'write_line', in mysqltest. This new command serves as a brief alternative
to 'write_file', with a single line output, that also resolves variables
like "exec" would.

Internally, this command will use my_open(), and therefore retry-on-error
logic.

Hopefully this will eliminate the very sporadic "can't open file because
it is used by another process" error on CI.
2024-04-17 16:52:37 +02:00
..
binlog.test Merge branch '10.4' into 10.5 2021-07-31 23:19:51 +02:00
binlog_cache_stat.test Merge branch '10.2' into 10.3 2019-09-03 13:17:32 +03:00
binlog_incident-master.opt Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
binlog_incident.inc Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
binlog_index.inc MDEV-16944 Fix file sharing issues on Windows in mysqltest 2024-04-17 16:52:37 +02:00
binlog_insert_delayed.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
binlog_ioerr.inc Merge branch '10.2' into 10.3 2020-01-17 00:46:40 +03:00
binlog_mysqlbinlog-cp932.inc Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
binlog_row_annotate.inc [MDEV-30824] Fix binlog to use 'String' for setting 'character_set_client' 2023-03-21 17:19:44 +04:00
binlog_truncate.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
binlog_xa_prepare_connection.inc MDEV-742 XA PREPAREd transaction survive disconnect/server restart 2020-03-14 22:45:48 +02:00
binlog_xa_prepare_disconnect.inc MDEV-742 XA PREPAREd transaction survive disconnect/server restart 2020-03-14 22:45:48 +02:00
binlog_xa_prepared_do_and_restart.inc MDEV-742 XA PREPAREd transaction survive disconnect/server restart 2020-03-14 22:45:48 +02:00
blackhole.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
check_binlog_size.inc MDEV-9266 Creating index on temporaray table breaks replication 2018-07-18 17:13:24 +05:30
ctype_cp932.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
ctype_cp932_binlog.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
ctype_ucs_binlog.result Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
ctype_ucs_binlog.test [MDEV-30824] Fix binlog to use 'String' for setting 'character_set_client' 2023-03-21 17:19:44 +04:00
database.test MDEV-31003: Second execution for ps-protocol 2023-07-26 17:15:00 +07:00
drop_table.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
drop_temp_table.test Merge 10.2 into 10.3 2019-08-29 12:00:12 +03:00
implicit.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
insert_select-binlog.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
mix_innodb_myisam_binlog.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
mix_innodb_myisam_side_effects.test Move mysql-test-run/extra/binlog to suite/binlog/include 2018-03-29 13:59:44 +03:00
mysqlbinlog_row_engine.inc Merge branch '10.2' into 10.3 2022-01-29 15:41:05 +01:00
print_optional_metadata.inc MDEV-20477 Merge binlog extended metadata support from the upstream 2019-09-11 15:09:35 +05:30