Bug #96993 Suggest to sleep 1ms after close connection in mysqltest utility
Submitted: 24 Sep 2019 11:50 Modified: 14 Oct 2019 7:01
Reporter: Fangxin Flou (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S4 (Feature request)
Version:All OS:Any
Assigned to: CPU Architecture:Any

[24 Sep 2019 11:50] Fangxin Flou
Description:
In thread pool when running some test cases of maximum connections count control, it is possible that "conn ..." is processed before "disconnect" finished at server side.

in the test case we have the following lines:

......
disconnect con1
connect ......
......

also we specify the disconnect before connect, but the server can run connect first before disconnect in thread pool.

How to repeat:
See above

Suggested fix:
dynstr_free(&ds_connection);
  usleep(1000);
  DBUG_VOID_RETURN;
}
[14 Oct 2019 7:01] MySQL Verification Team
Hello Fangxin Flou,

Thank you for the reasonable feature request!

regards,
Umesh