Test connect_debug is unstable

Bug #1622977 reported by Laurynas Biveinis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Status tracked in 5.7
5.5
Invalid
Undecided
Unassigned
5.6
Fix Released
Low
Laurynas Biveinis
5.7
Invalid
Undecided
Unassigned

Bug Description

On 5.6 trunk:

main.connect_debug w3 [ fail ]
        Test ended at 2016-08-31 09:12:25

CURRENT_TEST: main.connect_debug
mysqltest: At line 63: query 'connect con_3, localhost, root' failed: 1040: Too many connections
...

A potential reason is the testcase using processlist to sync whereas the server internally uses the variable exposed as Threads_connected to make the "too many connections decision." Since the connection is removed from processlist before decrementing Threads_connected, this creates a race condition. The 5.7 version of the testcase should be backported which used wait_until_count_sessions.inc (which uses Threads_connected).

Tags: ci upstream
tags: added: ci upstream
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-3556

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.