Bug #81675 | mysqlbinlog does not free the existing connection before opening new remote one | ||
---|---|---|---|
Submitted: | 1 Jun 2016 11:26 | Modified: | 5 Sep 2016 11:41 |
Reporter: | Laurynas Biveinis (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | 5.5+ | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | asan, lsan, mysqlbinlog |
[1 Jun 2016 11:26]
Laurynas Biveinis
[1 Jun 2016 11:35]
Laurynas Biveinis
The same issue exists on 5.5 and 5.6, but there it's masked by other LSan/client Valgrind bugs: bug 80014, bug 81674, bug 78223
[7 Jun 2016 8:40]
MySQL Verification Team
Hello Laurynas, Thank you for the report. Observed this with 5.7.13 source build. Thanks, Umesh
[7 Jun 2016 8:41]
MySQL Verification Team
Build log and test results
Attachment: 81675_5.7.13.build_log (application/octet-stream, text), 282.12 KiB.
[14 Jul 2016 11:31]
Laurynas Biveinis
Bug 81675 fix for 5.5/5.6/5.7 (*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.
Contribution: bug81675.patch (application/octet-stream, text), 1.11 KiB.
[14 Jul 2016 11:32]
Laurynas Biveinis
I have submitted a Percona Server version of the fix, which strives to be minimal. For a proper fix I would try to restructure mysqlbinlog.cc code so that connection lifetime is managed more naturally.
[5 Sep 2016 11:41]
David Moss
Posted by developer: Thank you for your feedback, this has been fixed in upcoming versions and the following was added to the 5.5.52 / 5.6.33 /5.7.15 change logs: mysqlbinlog --read-from-remote-server log1 log2 was opening a new connection for log2 without freeing the connection used for log1. Thanks to Laurynas Biveinis for the contribution.