[MDEV-32387] Windows : mtr output on is messed up with large MTR_PARALLEL Created: 2023-10-09  Updated: 2023-10-17  Resolved: 2023-10-17

Status: Closed
Project: MariaDB Server
Component/s: Platform Windows, Tests
Affects Version/s: 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2, 11.3
Fix Version/s: 10.4.32, 10.5.23, 10.6.16, 10.10.7, 10.11.6, 11.0.4, 11.1.3

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


 Description   

e.g https://buildbot.mariadb.org/#/builders/234/builds/22349/steps/9/logs/stdio contains

innodb.monitor 'innodb'                  w6 [ pass ]    188
main.last_value                          w18 main.information_schema_tables           w11 [ pass ]    455



 Comments   
Comment by Sergei Golubchik [ 2023-10-09 ]

I thought it's not windows-specific

Comment by Vladislav Vaintroub [ 2023-10-09 ]

serg,I thought it is stdout line-buffering specific, which is not working on stdio file handles on Windows.
Based on what I tried this far, perl does not interleave "print" output, but on Linux does not interleave lines, because it outputs only full lines for stdout.
i.e if one thread/process does

print "a1"; print "b2\n";

, and another one

print "c3"; print "d4\n"


on Linux it will print out lines with "a1b2" and "c3d4", whereas on Windows it can also spit "a1c3b2" and "d4"

This can depend on redirection and what not, but I believe so far the complaints were mostly about Windows.

Generated at Thu Feb 08 10:30:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.