-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PS-5840 - Memory leak in after 'main.threadpool_debug' - in 'Thread_p… #3455
Conversation
test after rebranch to latest GCA https://ps57.cd.percona.com/job/percona-server-5.7-pipeline/8465/ |
sql/threadpool_unix.cc
Outdated
@@ -1344,6 +1344,7 @@ bool Thread_pool_connection_handler::add_connection(Channel_info *channel_info) | |||
|
|||
if (unlikely(!connection)) | |||
{ | |||
my_free(thd->get_protocol_classic()->get_vio()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@altmannmarcelo From what I see from other parts of the code, for instance here (
thd->get_protocol_classic()->end_net(); |
In patterns like this, we usually call
thd->release_resources();
instead.If this does not work, memory from
vio
object should not be deleted directly by my_free()
. Use vio_delete()
instead
…ool_connection_handler::add_connection()' Problem If threadpool failed to allocate a connection, vio component allocated as part of channel_info->create_thd() won't be freed. There were two issues in the current implementation: - calling thd->get_protocol_classic()->end_net() alone. This should be called after vio_delete for proper cleanup, otherwise it will only assign NULL to vio. However, for add_connection() we use send_error_and_close_channel, which will also attempt to close the socket that was already closed by vio_delete. - We are calling the destructor of THD. As part of the destructor, release_resources will be called, which in case still have a valid vio, will try to close the socket, leading to the same crash when send_error_and_close_channel is called. Solution set vio->inactive= TRUE in order to avoid it been closed at vio_delete. vio_delete will be called as part of THD destructor, freeing the allocated resources. send_error_and_close_channel will report the error to client and close the socket.
@percona-ysorokin I've re analyzed the issue based on your comments. I believe I got it right this time: If threadpool failed to allocate a connection, vio component allocated
Solution https://ps57.cd.percona.com/job/percona-server-5.7-pipeline/9073/
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…o PS-8.0 commit e12228e Merge: 56a7ee6 9738253 Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Mon Jan 20 15:25:20 2020 +0100 Merge pull request percona#3624 from inikep/merge-mysql-5.7.29-part1 Implemented PS-5937 (Merge MySQL 5.7.29) part 1 commit 56a7ee6 Merge: ed88692 a352311 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Fri Jan 17 10:43:08 2020 -0600 Merge pull request percona#3618 from patrickbirch/ps-5.7-4691 PS-4691 add '--stop-timeout 600' option to 'docker run' command commit 9738253 Merge: 5b69b2a 4020424 Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Fri Jan 17 17:34:21 2020 +0100 Null merge PS 5.6.47 at commit 4020424 (merge-mysql-5.6.47-part1) into 5.7 commit 5b69b2a Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Wed Jan 15 16:03:01 2020 +0100 Implemented PS-5937 (Merge MySQL 5.7.29 up to 67891b7) (conflicts resolved) https://jira.percona.com/browse/PS-5937 *** VERSION raised to "5.7.29-32". PERCONA_INNODB_VERSION in univ.i raised to "32". *** Kept our solution for PS-6052 and merged upstream comments. `PS-6052: gcc 9.2.1 reports -Werror=stringop-overflow in os_file_get_parent_dir` https://jira.percona.com/browse/PS-6052 (commit 5b83a01) https://bugs.mysql.com/bug.php?id=97466 *** Reverted changes at percona@36c77ad10d1 from https://jira.percona.com/browse/PS-5844 *** Reverted changes from https://jira.percona.com/browse/PS-1697 at percona@ee75a7f93ab in favor of mysql/mysql-server@bd24fc67e68 (https://bugs.mysql.com/bug.php?id=76142) *** Fixed `percona_extended_innodb_status`, `main.events_bugs`, `innodb.bug76142` and `encryption.innodb-bad-key-change3` *** Re-recorded `rpl_encryption.rpl_gtid_validate_slave_gtids`, `keyring_vault.table_encrypt_4_directory` and `keyring_vault.table_encrypt_4` commit ed88692 Merge: f3fe668 fc868a6 Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Fri Jan 17 16:48:26 2020 +0100 Merge pull request percona#3613 from kamil-holubicki/PS-6150-post-push-fix-5.7 Post push fix: PS-6150: MySQL crash - sync_mutex_to_string 5.7 commit f3fe668 Merge: d393431 0d816a7 Author: Marcelo Altmann <altmannmarcelo@users.noreply.github.com> Date: Fri Jan 17 12:12:17 2020 -0300 Merge pull request percona#3606 from altmannmarcelo/PS-5.7-6773 5.7 PS-6773 - Conditional jump or move depends on uninitialised value(s) … commit fc868a6 Author: Kamil Holubicki <kamil.holubicki@percona.com> Date: Tue Jan 14 12:28:09 2020 +0100 Post push fix: PS-6150: MySQL crash - sync_mutex_to_string https://jira.percona.com/browse/PS-6150 1. MTR test was failing on builds where DEBUG SYNC facility is not present. Added proper MTR test guard. 2. Fixed MTR test stability commit 4020424 Merge: b59214e 89d559c Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Thu Jan 16 12:43:44 2020 +0100 Merge pull request percona#3610 from inikep/merge-mysql-5.6.47-part1 Implemented PS-6104 (Merge MySQL 5.6.47) part 1 commit fd66a5e Merge: 3740ccf 67891b7 Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Wed Jan 15 13:15:53 2020 +0100 Implemented PS-5937 (Merge MySQL 5.7.29 up to 67891b7) (merge with conflicts) commit 3740ccf Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Wed Jan 15 13:13:45 2020 +0100 Implemented PS-5937 (Merge MySQL 5.7.29) (docs) https://jira.percona.com/browse/PS-5937 *** Updated man pages from MySQL Server 5.7.29 source tarball. *** Updated 'scripts/fill_help_tables.sql' from MySQL Server 5.7.29 source tarball. commit 89d559c Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Tue Jan 14 14:47:48 2020 +0100 Implemented PS-6104 (Merge MySQL 5.6.47 up to 13beff1) (conflicts resolved) https://jira.percona.com/browse/PS-6104 *** VERSION raised to "5.6.47-87". PERCONA_INNODB_VERSION in univ.i raised to "87". *** Fixed `main.events_bugs` and `main.percona_innodb_version` *** Re-recorded `main.max_statement_time_func`, `innodb.xtradb_compressed_columns_mysqldump` and `innodb.xtradb_compressed_columns_with_dictionaries` after changes in `sql/share/errmsg-utf8.txt` commit d393431 Merge: c2c7ee6 36c77ad Author: Marcelo Altmann <altmannmarcelo@users.noreply.github.com> Date: Tue Jan 14 09:57:27 2020 -0300 Merge pull request percona#3597 from altmannmarcelo/PS-5.7-5844 PS-5844 Memory leak after 'innodb.alter_crash' - in 'prepare_inplace_… commit 36c77ad Author: Marcelo Altmann <altmannmarcelo@gmail.com> Date: Tue Jan 7 10:23:40 2020 -0300 PS-5844 Memory leak after 'innodb.alter_crash' - in 'prepare_inplace_alter_table_dict()' The problem If online alter fails to allocate undo log, heap memory allocated to index object won't be freed. This can be simulated by using debug point 'ib_create_table_fail_too_many_trx' prior to an alter table. Solution Prior to set index pointer to null, call dict_mem_index_free to correctly free memory objects allocated by the index. commit c570968 Merge: 98685cd 13beff1 Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Tue Jan 14 13:16:28 2020 +0100 Implemented PS-6104 (Merge MySQL 5.6.47 up to 13beff1) (merge with conflicts) https://jira.percona.com/browse/PS-6104 commit 98685cd Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Tue Jan 14 13:12:54 2020 +0100 Implemented PS-6104 (Merge MySQL 5.6.47) (docs) https://jira.percona.com/browse/PS-6104 *** Updated man pages from MySQL Server 5.6.47 source tarball. *** Updated 'scripts/fill_help_tables.sql' from MySQL Server 5.6.47 source tarball. commit c2c7ee6 Merge: ebb43be 8c39ddb Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Tue Jan 14 10:03:37 2020 +0100 Merge pull request percona#3594 from kamil-holubicki/PS-6150-5.7 PS-6150: MySQL crash - sync_mutex_to_string commit ebb43be Merge: 9834a9e 00e73ef Author: Marcelo Altmann <altmannmarcelo@users.noreply.github.com> Date: Thu Jan 9 19:09:22 2020 -0300 Merge pull request percona#3455 from altmannmarcelo/PS-5.7-5840 PS-5840 - Memory leak in after 'main.threadpool_debug' - in 'Thread_p… commit 9834a9e Merge: 78d06da d66bc04 Author: Oleksandr Miroshnychenko <alex.miroshnychenko@percona.com> Date: Wed Jan 8 11:33:15 2020 +0200 Merge pull request percona#3599 from vorsel/PS-6750_move_mysql_config_from_client_to_devel_5.7 PS-6750 move mysql_config from client to devel pkg commit b59214e Merge: 888c3e7 c483c27 Author: Oleksandr Miroshnychenko <alex.miroshnychenko@percona.com> Date: Wed Jan 8 11:33:08 2020 +0200 Merge pull request percona#3598 from vorsel/PS-6750_move_mysql_config_from_client_to_devel_5.6 PS-6750 obsolete mariadb-connector-c-devel commit c483c27 Author: Oleksandr Miroshnychenko <alex.miroshnychenko@percona.com> Date: Tue Jan 7 15:16:25 2020 +0200 PS-6750 obsolete mariadb-connector-c-devel commit d66bc04 Author: Oleksandr Miroshnychenko <alex.miroshnychenko@percona.com> Date: Tue Jan 7 14:22:55 2020 +0200 PS-6750 move mysql_config from client to devel pkg commit 78d06da Merge: dac02e8 fc420e5 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Tue Jan 7 06:17:10 2020 -0600 Merge pull request percona#3590 from patrickbirch/ps-5.7-1466 PS-1466 LP #1264306: Per Session innodb_flush_log_at_trx_commit poorly documented commit dac02e8 Merge: 0d26234 339c6c6 Author: Marcelo Altmann <altmannmarcelo@users.noreply.github.com> Date: Mon Jan 6 12:31:32 2020 -0300 Merge pull request percona#3592 from altmannmarcelo/PS-5.7-6751 PS-6751 - innodb.table_encrypt_debug is failing commit 0d26234 Merge: 60d97c9 7bac03b Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Sat Jan 4 10:27:29 2020 +0100 Merge pull request percona#3589 from kamil-holubicki/PS-6148-5.7 PS-6148: If ANALYZE TABLE with transient statistics runs more than 600 seconds diagnostic query may crash server commit 00e73ef Author: Marcelo Altmann <altmannmarcelo@gmail.com> Date: Tue Oct 8 10:44:49 2019 -0300 PS-5840 - Memory leak in after 'main.threadpool_debug' - in 'Thread_pool_connection_handler::add_connection()' Problem If threadpool failed to allocate a connection, vio component allocated as part of channel_info->create_thd() won't be freed. There were two issues in the current implementation: - calling thd->get_protocol_classic()->end_net() alone. This should be called after vio_delete for proper cleanup, otherwise it will only assign NULL to vio. However, for add_connection() we use send_error_and_close_channel, which will also attempt to close the socket that was already closed by vio_delete. - We are calling the destructor of THD. As part of the destructor, release_resources will be called, which in case still have a valid vio, will try to close the socket, leading to the same crash when send_error_and_close_channel is called. Solution set vio->inactive= TRUE in order to avoid it been closed at vio_delete. vio_delete will be called as part of THD destructor, freeing the allocated resources. send_error_and_close_channel will report the error to client and close the socket. commit 60d97c9 Merge: b3f5986 a1fe0a7 Author: Marcelo Altmann <altmannmarcelo@users.noreply.github.com> Date: Fri Jan 3 10:41:19 2020 -0300 Merge pull request percona#3477 from altmannmarcelo/PS-5.7-5842 PS-5842 - Memory leak after 'rocksdb.sys_vars.rocksdb_update_cf_optio… commit fc420e5 Merge: b90d9b1 9c88910 Author: patrickbirch <patrick.birch@percona.com> Date: Thu Jan 2 10:19:45 2020 -0600 PS-1466 LP #1264306: Per Session innodb_flush_log_at_trx_commit poorly documented merged with 5.6 version updated innodb_io.rst removing 5.6 references commit 888c3e7 Merge: 7180747 9c88910 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Thu Jan 2 06:15:44 2020 -0600 Merge pull request percona#3575 from patrickbirch/ps-5.6-1466 PS-1466 LP #1264306: Per Session innodb_flush_log_at_trx_commit poorl… commit 7bac03b Author: Kamil Holubicki <kamil.holubicki@percona.com> Date: Mon Dec 30 12:29:32 2019 +0100 PS-6148: If ANALYZE TABLE with transient statistics runs more than 600 seconds diagnostic query may crash server https://jira.percona.com/browse/PS-6148 Locking of table statistics limited to the time when statistics related table members are changed. While calculation is done, statistics are not locked, so can be queried. Index analysis protected by analyze_index_mutex (the same which protects index when analysis is done for persistent statistics) commit b3f5986 Merge: 84b9b20 36ca058 Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Fri Dec 20 10:55:01 2019 +0100 Merge pull request percona#3562 from kamil-holubicki/PS-6113-5.7-v2 PS-6113: If ANALYZE TABLE runs more than 600 seconds diagnostic query may crash server commit 84b9b20 Merge: fbd04c8 6809bf6 Author: Zsolt Parragi <zsolt.parragi@percona.com> Date: Wed Dec 18 22:15:14 2019 +0100 Merge pull request percona#3512 from dutow/ps-5.7-ps5952 PS-5952, PS-5956: Fix utility user bugs (5.7) commit 7180747 Merge: ecc11cf c6ac4db Author: Zsolt Parragi <zsolt.parragi@percona.com> Date: Wed Dec 18 22:14:59 2019 +0100 Merge pull request percona#3447 from dutow/ps-5.6-ps5952 PS-5952, PS-5956: Fix utility user bugs (5.6) commit fbd04c8 Merge: 32104ce f607a6f Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Wed Dec 18 11:57:16 2019 -0600 Merge pull request percona#3581 from patrickbirch/ps-5.7-1673 PS-1673 LP #1520467: ps_tokudb_admin cannot install tokudb remotely commit 9c88910 Author: patrickbirch <patrick.birch@percona.com> Date: Tue Dec 17 10:16:29 2019 -0600 PS-1466 LP #1264306: Per Session innodb_flush_log_at_trx_commit poorly documented The variable documented is innodb_use_global_flush_log_at_trx_commit Rewrote the description based on investigation and comments in the Jira ticket commit ecc11cf Merge: ca69ff1 3f1ef05 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Wed Dec 18 09:02:20 2019 -0600 Merge pull request percona#3566 from patrickbirch/ps-5.6-1761 PS-1761 LP #1640062: Document that QRT accounts query execution time … commit 3f1ef05 Author: patrickbirch <patrick.birch@percona.com> Date: Fri Dec 13 09:19:02 2019 -0600 PS-1761 LP #1640062: Document that QRT accounts query execution time after the locks are taken Added sentence to opening paragraph based on the description in the Jira ticket. commit 32104ce Merge: 02c2e9e caf3a47 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Wed Dec 18 06:35:38 2019 -0600 Merge pull request percona#3577 from patrickbirch/ps-5.7-4842 PS-4842 no default is listed for corrupt action commit 02c2e9e Merge: 34a36ee 94dcbc7 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Wed Dec 18 06:35:12 2019 -0600 Merge pull request percona#3578 from patrickbirch/ps-5.7-4541 PS-4541 Documentation for maximum- and minimum- option specifiers can cause confusion commit 94dcbc7 Merge: b90d9b1 e67261d Author: patrickbirch <patrick.birch@percona.com> Date: Wed Dec 18 06:22:22 2019 -0600 PS-4541 Documentation for maximum- and minimum- option specifiers can cause confusion Merge remote-tracking branch 'pb_remote/ps-5.6-4541' into ps-5.7-4541 commit 6809bf6 Author: Zsolt Parragi <zsolt.parragi@percona.com> Date: Tue Oct 1 14:48:32 2019 +0200 PS-5952, PS-5956: Fix utility user bugs PS-5952: Utility user visible in performance_schema.threads PS-5956: Root session must not be allowed to kill Utility user session (cherry picked from commit c6ac4db) commit 34a36ee Merge: c08e5cd 9df3fd3 Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Wed Dec 18 11:19:19 2019 +0100 Merge pull request percona#3565 from kamil-holubicki/PS-6125-5.7 PS-6125: Server crashes when querying ROCKSDB_GLOBAL_INFO table (5.7) commit ca69ff1 Merge: 11fccc9 d8728d9 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Tue Dec 17 10:59:51 2019 -0600 Merge pull request percona#3568 from patrickbirch/ps-5.6-4842 PS-4842 no default is listed for corrupt action commit 11fccc9 Merge: 2ef997c e67261d Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Tue Dec 17 10:59:05 2019 -0600 Merge pull request percona#3569 from patrickbirch/ps-5.6-4541 PS-4541 Documentation for maximum- and minimum- option specifiers can… commit c08e5cd Merge: 25be387 1daddaf Author: Marcelo Altmann <altmannmarcelo@users.noreply.github.com> Date: Tue Dec 17 12:23:10 2019 -0300 Merge pull request percona#3347 from altmannmarcelo/PS-5.7-5325 PS-5325 Conditional jump or move depends on uninitialised value on in… commit 2ef997c Merge: 0ed1be8 6785209 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Mon Dec 16 16:42:52 2019 -0600 Merge pull request percona#3573 from patrickbirch/ps-5.6-1673 PS-1673 LP #1520467:ps_tokudb_admin cannot install tokudb remotely commit 0ed1be8 Merge: e166906 00b82ef Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Mon Dec 16 12:09:27 2019 -0600 Merge pull request percona#3572 from patrickbirch/ps-5.6-5521 PS-5521 tokudb_cache_size missing from documentation commit 25be387 Merge: af047cb bdf28ad Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Mon Dec 16 12:09:06 2019 -0600 Merge pull request percona#3571 from patrickbirch/ps-5.7-5421 PS-5421 MyRocks - Documentation for rocksdb_db_write_buffer_size appe… commit 00b82ef Author: patrickbirch <patrick.birch@percona.com> Date: Mon Dec 16 11:56:24 2019 -0600 PS-5521 tokudb_cache_size missing from documentation Added tokudb_cache_size to the list of variables Verified link commit af047cb Merge: 1f793b4 3cbc559 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Mon Dec 16 10:04:38 2019 -0600 Merge pull request percona#3570 from patrickbirch/ps-5.7-4794 PS-4794 ps-admin does not disable THP when installing MyRocks commit 3cbc559 Author: patrickbirch <patrick.birch@percona.com> Date: Mon Dec 16 09:22:51 2019 -0600 PS-4794 ps-admin does not disable THP when installing MyRocks In the note, removed the line about disabling THP Rewrote the note to one line by removing the remaining item and incorporating the item into the lead sentence. commit e67261d Author: patrickbirch <patrick.birch@percona.com> Date: Mon Dec 16 07:29:38 2019 -0600 PS-4541 Documentation for maximum- and minimum- option specifiers can cause confusion added phrase the option modifiers do not work for non-numeric system variables commit 1f793b4 Merge: 7df89c2 92470df Author: Zsolt Parragi <zsolt.parragi@percona.com> Date: Thu Dec 12 07:17:26 2019 +0100 Merge pull request percona#3558 from fmbiete/patch-1 Correct mistake in release notes commit 92470df Author: Francisco Miguel Biete <fbiete@gmail.com> Date: Wed Dec 11 11:35:13 2019 +0000 Correct mistake in release notes Percona Server 5.7.28 is based in Oracle MySQL 5.7.28. The link to Oracle release notes is correct but the text was saying 5.7.27 commit 7df89c2 Merge: 7eb9e75 41f2acf Author: Zsolt Parragi <zsolt.parragi@percona.com> Date: Thu Dec 5 18:55:49 2019 +0100 Merge pull request percona#3553 from dutow/ps-5.7-init-script-error PS-6123: Replace '>' with '-gt' (5.7) commit 7eb9e75 Merge: b959fbe 8331b81 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Thu Dec 5 09:30:16 2019 -0600 Merge pull request percona#3520 from patrickbirch/ps-5.7-6075 PS-6075 PXB reference in Encryption docs commit b959fbe Merge: 07e2e51 40d57eb Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Thu Dec 5 08:01:57 2019 -0600 Merge pull request percona#3519 from patrickbirch/ps-5.7-4653 PS-4653 Extended mysqlbinlog doc page should only discuss --compress commit 8331b81 Author: patrickbirch <patrick.birch@percona.com> Date: Mon Nov 11 15:22:29 2019 -0600 PS-6075 PXB reference in Encryption docs Added the PXB note from a discussion with Sergei on 5.7 and 2.4 commit 07e2e51 Merge: 84ba31a d5994ad Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Tue Dec 3 23:02:46 2019 +0100 Merge pull request percona#3539 from kamil-holubicki/PS-6013-5.7 PS-6013: Prevented ICP for keys that cannot be decoded (backported PS-5024 fix) (5.7) commit 40d57eb Author: patrickbirch <patrick.birch@percona.com> Date: Mon Nov 11 10:59:02 2019 -0600 PS-4653 Extended mysqlbinlog doc page should only discuss --compress Removed ssl information from extended_mysqlbinlog Rewrote the compression paragraphs. Added example commit 84ba31a Merge: 54dafab 7089800 Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Fri Nov 22 13:12:57 2019 +0100 Merge pull request percona#3535 from kamil-holubicki/PS-1469-5.7 PS-1469: MEMORY table "is full" flag stuck when should not be (5.7) commit e166906 Merge: 44e0a55 9c6fec5 Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Fri Nov 22 13:12:03 2019 +0100 Merge pull request percona#3534 from kamil-holubicki/PS-1469-5.6 PS-1469: MEMORY table "is full" flag stuck when should not be (5.6) commit 54dafab Merge: 1ce01c4 8a96400 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Tue Nov 19 10:41:32 2019 -0600 Merge pull request percona#3532 from patrickbirch/ps-5.7-4775 PS-4775 [MyRocks] Improve documentation about rocksdb_wal_recovery mode commit 1ce01c4 Merge: 3cfe2e9 e522b2d Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Thu Nov 14 08:06:11 2019 -0600 Merge pull request percona#3529 from patrickbirch/ps-5.7-6088 PS-6088 [Doc] remove duplicate topic commit e522b2d Author: patrickbirch <patrick.birch@percona.com> Date: Thu Nov 14 08:03:42 2019 -0600 PS-6088 [Doc] remove duplicate topic Edited the index.rst to remove duplicated entry commit 3cfe2e9 Merge: 741ede0 2a3c052 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Wed Nov 13 12:50:45 2019 -0600 Merge pull request percona#3526 from patrickbirch/ps-5.7-6085 [Doc] fix spelling commit 2a3c052 Merge: 67014dd 741ede0 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Wed Nov 13 12:50:19 2019 -0600 Merge branch '5.7' into ps-5.7-6085 commit 67014dd Author: patrickbirch <patrick.birch@percona.com> Date: Wed Nov 13 12:47:15 2019 -0600 [Doc] fix spelling updated index Added performance/query_limit_records Updated Percona-Server-5.7.28-31 commit 741ede0 Merge: 23bedc0 d14ef86 Author: EvgeniyPatlan <evgeniy.patlan@percona.com> Date: Wed Nov 13 19:29:44 2019 +0200 Merge pull request percona#3525 from percona/release-5.7.28-31 Release 5.7.28 31 commit 23bedc0 Merge: 2c829fd d1804ac Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Tue Nov 12 11:31:45 2019 -0600 Merge pull request percona#3516 from patrickbirch/ps-5.7-6060 PS-6060 Release Notes for 5.7.28-31 commit 2c829fd Merge: 4b15f67 a5b75e6 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Tue Nov 12 06:24:57 2019 -0600 Merge pull request percona#3511 from patrickbirch/ps-5.7-6056 PS-6056 Document MySQL Queries per second is decreasing with higher n… commit d14ef86 Merge: dffaf8b edc3936 Author: EvgeniyPatlan <evgeniy.patlan@percona.com> Date: Fri Nov 8 16:33:40 2019 +0200 Merge pull request percona#3515 from EvgeniyPatlan/release-5.7.28-31 Fix rpm patch commit edc3936 Author: Evgeniy Patlan <evgeniy.patlan@percona.com> Date: Fri Nov 8 14:34:53 2019 +0200 Fix rpm patch commit 4b15f67 Merge: 1f2c7dc 5d3480c Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Thu Nov 7 21:44:27 2019 +0100 Merge pull request percona#3502 from kamil-holubicki/PS-5813-5.7 PS-5813: Fixed handling of 'none' value for slow_query_log_use_global_control server variable (5.7) commit 44e0a55 Merge: cef861f 13b50b5 Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Thu Nov 7 21:43:45 2019 +0100 Merge pull request percona#3433 from kamil-holubicki/PS-5813-5.6 PS-5813: Fixed handling of 'none' value for slow_query_log_use_global_control server variable (5.6) commit 1f2c7dc Merge: dffaf8b 00a7830 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Thu Nov 7 12:27:52 2019 -0600 Merge pull request percona#3508 from patrickbirch/ps-5.7-5977 PS-5977 [DOC] Not all SSL choices documented for binary tarballs commit 00a7830 Author: patrickbirch <patrick.birch@percona.com> Date: Wed Nov 6 08:17:45 2019 -0600 PS-5977 [DOC] Not all SSL choices documented for binary tarballs added information on ssl1:111 removed hexadecimal numbers from the openssl listings. commit c6ac4db Author: Zsolt Parragi <zsolt.parragi@percona.com> Date: Tue Oct 1 14:48:32 2019 +0200 PS-5952, PS-5956: Fix utility user bugs PS-5952: Utility user visible in performance_schema.threads PS-5956: Root session must not be allowed to kill Utility user session commit cef861f Merge: 2a7e89b 0af6e78 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Wed Nov 6 09:51:30 2019 -0600 Merge pull request percona#3498 from patrickbirch/ps-5.6-6047 PS-6047 Release Notes for 5.6.46-86.2 commit 0af6e78 Merge: d1b49b4 2a7e89b Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Wed Nov 6 09:51:12 2019 -0600 Merge branch '5.6' into ps-5.6-6047 commit 2a7e89b Merge: 41419d1 5e33e07 Author: EvgeniyPatlan <evgeniy.patlan@percona.com> Date: Wed Nov 6 16:53:02 2019 +0200 Merge pull request percona#3509 from percona/release-5.6.46-86.2 Release 5.6.46 86.2 commit dffaf8b Merge: 485d796 a0af098 Author: georgelorchpercona <george.lorch@percona.com> Date: Wed Nov 6 07:40:02 2019 -0700 Merge pull request percona#3486 from gl-sergei/5.7-ps-6023 5.7 ps 6023 commit 41419d1 Merge: 8df535d 55e8018 Author: georgelorchpercona <george.lorch@percona.com> Date: Wed Nov 6 07:39:34 2019 -0700 Merge pull request percona#3485 from gl-sergei/5.6-ps-6023 PS-6023: Percona server crashes after a Kerberos password change commit 485d796 Merge: b3180d8 c3e8c8a Author: Zsolt Parragi <zsolt.parragi@percona.com> Date: Wed Nov 6 15:20:32 2019 +0100 Merge pull request percona#3406 from dutow/ps-5.7-ps5783 PS-5783: New thread variables: innodb_(force_index_)records_in_range (5.7) commit d1b49b4 Author: patrickbirch <patrick.birch@percona.com> Date: Sat Nov 2 11:07:48 2019 -0500 PS-6047 Release Notes for 5.6.46-86.2 Updated conf.py with correct version number updated release-notes_index with release note number created release notes for 5.6.46-86.2 commit b3180d8 Merge: f4940de 73f08c6 Author: Marcelo Altmann <altmannmarcelo@users.noreply.github.com> Date: Tue Nov 5 14:17:04 2019 -0300 Merge pull request percona#3381 from altmannmarcelo/PS-5.7-5642 5.7 PS-5642 - page tracker thread won't exist if startup fails commit 8df535d Merge: e9b4be9 8ac8ac8 Author: Marcelo Altmann <altmannmarcelo@users.noreply.github.com> Date: Tue Nov 5 14:15:34 2019 -0300 Merge pull request percona#3379 from altmannmarcelo/PS-5.6-5642 5.6 PS-5642 - page tracker thread won't exist if startup fails commit f4940de Merge: 78673dd d379f1f Author: kamil-holubicki <50845928+kamil-holubicki@users.noreply.github.com> Date: Tue Nov 5 11:57:34 2019 +0100 Merge pull request percona#3452 from kamil-holubicki/PS-5966-5.7 PS-5966: Fixed drifting status variables values (5.7) commit 78673dd Merge: 75f2428 8a72b94 Author: Patrick Birch <48594400+patrickbirch@users.noreply.github.com> Date: Sat Nov 2 10:41:28 2019 -0500 Merge pull request percona#3497 from patrickbirch/ps-5.7-6050 PS-6050 Upstream bug fixes documentation has artifact commit 8a72b94 Author: patrickbirch <patrick.birch@percona.com> Date: Fri Nov 1 15:19:42 2019 -0500 PS-6050 Upstream bug fixes documentation has artifact Removed the artifact the page displays as requested. commit 75f2428 Merge: b90d9b1 5c6e1e3 Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Fri Nov 1 16:00:43 2019 +0100 Merge pull request percona#3496 from inikep/origin/ps-merge-5.7.28-part2 PS-5859: Merge MySQL 5.7.28 (part 2) commit 5e33e07 Merge: 7db7ef8 dd17339 Author: EvgeniyPatlan <evgeniy.patlan@percona.com> Date: Fri Nov 1 13:43:18 2019 +0200 Merge pull request percona#3495 from EvgeniyPatlan/release-5.6.46-86.2 Update version commit dd17339 Author: Evgeniy Patlan <evgeniy.patlan@percona.com> Date: Fri Nov 1 13:24:49 2019 +0200 Update version commit 7db7ef8 Merge: e9b4be9 2083a74 Author: EvgeniyPatlan <evgeniy.patlan@percona.com> Date: Fri Nov 1 10:29:35 2019 +0200 Merge pull request percona#3494 from EvgeniyPatlan/release-5.6.46-86.2 PS-5650 Add package version for 5.6 rpms commit 2083a74 Author: Evgeniy Patlan <evgeniy.patlan@percona.com> Date: Fri Nov 1 01:15:57 2019 +0200 FIx rpm spec commit b7ce254 Author: Evgeniy Patlan <evgeniy.patlan@percona.com> Date: Fri Nov 1 00:20:48 2019 +0200 Update rpm patch commit 487ced5 Author: Evgeniy Patlan <evgeniy.patlan@percona.com> Date: Thu Oct 31 23:42:58 2019 +0200 PS-5650 Add package version for 5.6 rpms commit 5c6e1e3 Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Mon Oct 21 20:05:35 2019 +0200 Implemented PS-5859 (Merge MySQL 5.7.28) (conflicts resolved) https://jira.percona.com/browse/PS-5859 commit dee4959 Merge: 21f8dcb b2f3214 Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Thu Oct 31 15:16:15 2019 +0100 Implemented PS-5859 (Merge MySQL 5.7.28) (merge with conflicts) commit e9b4be9 Merge: 4e71159 bd42cf9 Author: EvgeniyPatlan <evgeniy.patlan@percona.com> Date: Wed Oct 23 13:52:44 2019 +0300 Merge pull request percona#3478 from EvgeniyPatlan/PS-6017 PS-6017 Add build script commit bd42cf9 Author: Evgeniy Patlan <evgeniy.patlan@percona.com> Date: Wed Oct 23 13:49:16 2019 +0300 PS-6017 Add build script commit 4e71159 Merge: ed5806a 4d9f1f3 Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Tue Oct 22 12:13:28 2019 +0200 Merge pull request percona#3473 from inikep/ps-merge-5.6.46-full PS-5988: Merge MySQL 5.6.46 (part 2) commit 4d9f1f3 Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Wed Oct 16 18:23:44 2019 +0200 Implemented PS-5988 (Merge MySQL 5.6.46) (conflicts resolved) https://jira.percona.com/browse/PS-5988 *** Reverted 2a8df6d patch `Restore -DWITH_SSL=system support for OpenSSL versions <= 0.9.8k.` commit 6b8dc1d Merge: ed5806a 9c3a49e Author: Przemyslaw Skibinski <przemyslaw.skibinski@percona.com> Date: Mon Oct 21 18:32:09 2019 +0200 Implemented PS-5988 (Merge MySQL 5.6.46) (merge with conflicts) https://jira.percona.com/browse/PS-5988 commit c3e8c8a Author: Zsolt Parragi <zsolt.parragi@percona.com> Date: Tue Sep 3 11:11:19 2019 +0200 PS-5783: New thread variables: innodb_(force_index_)records_in_range These variables make it possible to override reconds_in_range, effectively skipping its computation. This could be useful in some cases where reconds_in_range takes up most of the query cost.
…ool_connection_handler::add_connection()'
Problem
If threadpool failed to allocate a connection, vio component allocated
as part of channel_info->create_thd() won't be freed.
Solution
call vio_delete on allocated vio to free up memory.
vio_delete will also close the channel, which particularly in this case
will be handled by send_error_and_close_channel, thus we set
vio->inactive= TRUE in order to avoid it been closed at vio_delete.