diff options
author | Sujatha <sujatha.sivakumar@mariadb.com> | 2019-12-06 19:56:23 +0530 |
---|---|---|
committer | Sujatha <sujatha.sivakumar@mariadb.com> | 2019-12-06 19:58:12 +0530 |
commit | e949b2d4abac99ffbc68bfd8c39a74e30caa3902 (patch) | |
tree | c4324d6a2c7c65828218bc344c65f03a9f75d05c | |
parent | 42bad56aab25db4a05c676ba99290949ad4e1c34 (diff) | |
download | mariadb-git-e949b2d4abac99ffbc68bfd8c39a74e30caa3902.tar.gz |
MDEV-20959: binlog.binlog_parallel_replication_marks_row fails in buildbot with wrong result
Problem:
=======
Test "binlog.binlog_parallel_replication_marks_row" fails sporadically due to
result length mismatch.
Analysis:
=========
Test generates a binary log and it looks for certain words within the binary
log file and prints them. For example word like "GTID,BEGIN,COMMIT ...".
Binary log output contains base64 encoded characters. Occasionally the encoded
characters match with the above words and results in test failure.
+XwoFWxMBAAAALgAAAGEDAAAAAB8AAAAAAAEABHRlc3QAAnQxAAIDAwACFGTIDQ==
+AAAAAAAAAAAEEwQADQgICAoKCgGTIDw9
Fix:
===
Improve the regular expression to match exact words.
-rw-r--r-- | mysql-test/include/binlog_parallel_replication_marks.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/include/binlog_parallel_replication_marks.test b/mysql-test/include/binlog_parallel_replication_marks.test index 4e673bd30c3..6e22c7dd75e 100644 --- a/mysql-test/include/binlog_parallel_replication_marks.test +++ b/mysql-test/include/binlog_parallel_replication_marks.test @@ -79,7 +79,7 @@ while (<F>) { s/end_log_pos \d+/end_log_pos #/; s/table id \d+/table id #/; s/mapped to number \d+/mapped to number #/; - print if /GTID|BEGIN|COMMIT|Table_map|Write_rows|Update_rows|Delete_rows|generated by server|40005 TEMPORARY/; + print if /\b(GTID|BEGIN|COMMIT|Table_map|Write_rows|Update_rows|Delete_rows|generated by server|40005 TEMPORARY)\b/; } close F; EOF |