MDEV-37797 - main.information_schema_db fails sporadically#4339
MDEV-37797 - main.information_schema_db fails sporadically#4339svoj merged 1 commit intoMariaDB:10.11from
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a sporadic test failure in main.information_schema_db caused by incompletely closed connections from preceding tests affecting the MDEV-20549 test output. The fix replaces broken connection cleanup patterns with a more reliable approach.
- Hardcodes
$count_sessionsto 1 instead of using the brokencount_sessions.inc - Removes redundant connection switching before disconnections
- Uses
wait_until_count_sessions.incto ensure connections are properly closed
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| mysql-test/main/information_schema_db.test | Implements the connection cleanup fix with hardcoded session count and simplified disconnect logic |
| mysql-test/main/information_schema_db.result | Updates expected test output to reflect the removed connection switching commands |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
@vuvova thinking more on this... given that We could make this particular (and probably some other) test agnostic to concurrent connections by changing queries to something like Some tests can't probably be made agnostic to concurrent connections, in this case we add |
|
ouch! I fixed it in 090de4e, but forgot to push. Please, free free to push your fix with |
|
@vuvova with |
fa823f6 to
d2fa222
Compare
MDEV-20549 test output was affected by incompletely closed preceding connections. Fix for similar issue was attempted by f4eb095, it introduced wait_until_disconnected.inc. For an explanation of why it didn't work see bead24b commit comment. Another fix was attempted in bead24b. It didn't help either, because connection is removed from information_schema.processlist after COM_QUIT handling. Make test for MDEV-20549 agnostic to concurrent connections by querying information_schema.processlist only for connections that it uses.
d2fa222 to
3ce1922
Compare
MDEV-20549 test output was affected by incompletely closed preceding connections.
Fix for similar issue was attempted by f4eb095, it introduced wait_until_disconnected.inc. For an explanation of why it didn't work see bead24b commit comment.
Another fix was attempted in bead24b. It didn't help either, because connection is removed from information_schema.processlist after COM_QUIT handling.
Make test for MDEV-20549 agnostic to concurrent connections by querying information_schema.processlist only for connections that it uses.