[MDEV-10907] MTR and server writes can interleave in the error log Created: 2016-09-27  Updated: 2016-09-27  Resolved: 2016-09-27

Status: Closed
Project: MariaDB Server
Component/s: Platform Windows, Tests
Affects Version/s: 5.5, 10.0, 10.1, 10.2
Fix Version/s: 5.5.53

Type: Bug Priority: Major
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


 Description   

mtr writes to the server error log to mark current test.
Server writes to its error log at the same time.

On Windows, these writes can interleave, since appends to the log file are not atomic.
Sometimes, some lines from server get lost. Sometimes some lines from mtr get lost
This confuses MTR.

An example output from
http://buildbot.askmonty.org/buildbot/builders/win32-debug/builds/1117/steps/test/logs/mysqld.1.err.3
showing mtr overwriting server output

CURRENT_TEST: main.flush_block_commit_notembedded
d/sql//Debug/mysqld.exe (root[root] @ localhost [::1]): Normal shutdown


Generated at Thu Feb 08 07:45:50 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.