MDEV-40661: mysql_upgrade.test not stable on a busy server - #5510
MDEV-40661: mysql_upgrade.test not stable on a busy server#5510gkodinov wants to merge 1 commit into
Conversation
|
Note a similar PR: #5344 |
There was a problem hiding this comment.
Pull request overview
Stabilizes mysql-test/main/mysql_upgrade.test for busy servers by ensuring mysql_upgrade’s background connection cleanup has completed (as measured by returning to the pre-upgrade session count) before running DROP USER, avoiding intermittent “active sessions” warnings.
Changes:
- Capture the current
Threads_connectedcount before selectedmysql_upgradeinvocations. - Wait after
mysql_upgradeuntilThreads_connectedreturns to (or below) the pre-upgrade baseline before dropping affected users. - Apply this pattern across several upgrade scenarios within the same test.
Suppressed comments (5)
mysql-test/main/mysql_upgrade.test:209
- This
--sourceline has trailing whitespace after the include filename. While mysqltest currently tolerates it, it adds noise and can be error-prone in tooling; please remove the trailing space.
--source include/wait_until_count_sessions.inc
mysql-test/main/mysql_upgrade.test:140
- This
--sourceline has trailing whitespace after the include filename. While mysqltest currently tolerates it, it adds noise and can be error-prone in tooling; please remove the trailing space.
--source include/wait_until_count_sessions.inc
mysql-test/main/mysql_upgrade.test:425
- This
--sourceline has trailing whitespace after the include filename. While mysqltest currently tolerates it, it adds noise and can be error-prone in tooling; please remove the trailing space.
--source include/wait_until_count_sessions.inc
mysql-test/main/mysql_upgrade.test:458
- This
--sourceline has trailing whitespace after the include filename. While mysqltest currently tolerates it, it adds noise and can be error-prone in tooling; please remove the trailing space.
--source include/wait_until_count_sessions.inc
mysql-test/main/mysql_upgrade.test:605
- This
--sourceline has trailing whitespace after the include filename. While mysqltest currently tolerates it, it adds noise and can be error-prone in tooling; please remove the trailing space.
--source include/wait_until_count_sessions.inc
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f4702be to
d154695
Compare
The cleanup of the old connection goes on in the background. It can take longer on a busy server and this triggers the active sessions warning in DROP user. Stablizied the test by disabling the warnings.
Disable_warning it is. I really think this is not the best option, but if it's popular, sure. The main point is to stabilize the test. |
The cleanup of the old connection goes on in the background. It can take longer on a busy server and this trigger the active sessions warning in DROP user.
Stabilized the test by counting the number of session prior to upgrade and waiting for the count after.