[MDEV-11871] Test mysqlbinlog.test fails with warnings "bytes lost" Created: 2017-01-22  Updated: 2017-01-29  Resolved: 2017-01-29

Status: Closed
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.2
Fix Version/s: 10.2.4

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: 10.2-rc


 Description   

The problem appeared in 10.2 tree with the flashback commit

# commit d75d8631ed2d6af730931ea7079ec7e512e61796
# Author: Monty <monty@mariadb.org>
# Date:   Fri Jan 20 15:33:28 2017 +0200
# 
#     [MDEV-10570] Add Flashback support

main.mysqlbinlog                         [ fail ]
        Test ended at 2017-01-22 18:21:22
 
CURRENT_TEST: main.mysqlbinlog
ERROR: Error in Log_event::read_log_event(): 'Found invalid event in binary log', data_len: 171, event_type: 2
ERROR: Could not read entry at offset 91204: Error in log format or read error.
ERROR 1227 (42000) at line 7: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
--- /data/bld/10.2/mysql-test/r/mysqlbinlog.result	2016-10-16 21:56:47.000000000 +0000
+++ /data/bld/10.2/mysql-test/r/mysqlbinlog.reject	2017-01-22 16:21:22.078056160 +0000
@@ -513,6 +513,10 @@
 1
 1
 drop procedure p1;
+Warning: 16384 bytes lost at 0x7fedb2d9f4e0, allocated by T@0 at 0x7fedb0ccb11f, 0x7fedb0c77bb8, 0x7fedaf3f3b45, 0x7fedb0c72b99
+Memory lost: 16384 bytes in 1 chunks
+Warning: 16384 bytes lost at 0x7f601bc414e0, allocated by T@0 at mysys/array.c:70, client/mysqlbinlog.cc:2883, 0x7f60188d4b45, 0x7f601a153b99
+Memory lost: 16384 bytes in 1 chunks
 flush logs;
 create table t1 (a varchar(64) character set utf8);
 load data infile '../../std_data/loaddata6.dat' into table t1;
 
mysqltest: Result length mismatch



 Comments   
Comment by Elena Stepanova [ 2017-01-22 ]

plinux, FYI. Whoever can fix it, please do it.

Comment by Andrii Nikitin (Inactive) [ 2017-01-23 ]

I believe this should be fixed by moving "delete_dynamic(&binlog_events);" into cleanup()

Comment by Lixun Peng [ 2017-01-23 ]

anikitin Yes, you're right. When parsing an event failed, the delete_dynamic(&binlog_events) will not be called.

Comment by Lixun Peng [ 2017-01-24 ]

Hi Monty,

Could you please help me to review this fix?

Pull Request: https://github.com/MariaDB/server/pull/296

Comment by Sergei Golubchik [ 2017-01-29 ]

Already fixed in 64b5e94236e

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