1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-29 00:08:14 +03:00
Files
mariadb/mysql-test/include
anozdrin/alik@quad. 393c54db50 Avoid races in connect.test.
The problem was in a test case for Bug33507:
  - when the number of active connections reaches the limit,
    the server accepts only root connections. That's achieved by
    accepting a connection, negotiating with the client and
    checking user credentials. If it is not SUPER, the connection
    is dropped.
  - when the server accepts connection, it increases the counter;
  - when the server drops connection, it decreases the counter;
  - the race was in between of decreasing the counter and accepting
    new connection:
    - max_user_connections = 2;
    - 2 oridinary user connections accepted;
    - extra user connection is establishing;
    - server checked user credentials, and sent 'Too many connections'
      error;
    - the client receives the error and establishes extra SUPER user
      connection;
    - the server however didn't decrease the counter (the extra
      user connection still is "alive" in the server) -- so, the new
      SUPER-user connection, will be dropped, because it exceeds
      (max_user_connections + 1).

The fix is to implement "safe connect", which makes several attempts
to connect and use it in the test script.
2008-03-17 14:26:00 +03:00
..
2003-08-28 06:08:17 +03:00
2006-08-16 14:58:49 +02:00
2008-03-17 14:26:00 +03:00
2005-07-06 17:16:22 +05:00
2007-06-09 16:05:43 +05:00
2007-06-09 16:05:43 +05:00
2007-06-28 21:34:54 +04:00
2005-05-05 10:36:17 -07:00
2007-06-28 21:34:54 +04:00
2003-01-28 08:38:28 +02:00
2007-06-09 16:05:43 +05:00
2004-06-20 19:11:02 +02:00
2007-06-09 16:05:43 +05:00
2007-06-09 16:05:43 +05:00
2005-07-22 21:06:02 +05:00
2007-06-28 21:34:54 +04:00
2006-01-12 19:51:02 +01:00
2003-12-25 20:11:01 +04:00
2007-06-28 21:34:54 +04:00
2006-09-13 15:37:35 -06:00
2006-04-12 15:56:29 +02:00
2007-02-19 15:31:55 +03:00
2007-09-05 18:02:46 +02:00
2007-06-19 11:38:07 +02:00
2006-02-16 16:33:46 +01:00
2007-04-10 18:01:29 +03:00
2006-01-12 19:51:02 +01:00
2004-12-13 21:00:43 +01:00
2006-08-16 19:29:49 +02:00
2007-08-09 23:18:44 +02:00
2008-01-14 15:38:02 +08:00
2007-06-21 21:58:59 +02:00
2008-01-14 15:38:02 +08:00
2008-01-14 15:38:02 +08:00
2008-01-14 15:38:02 +08:00
2006-11-20 22:42:06 +02:00
2006-12-11 11:44:03 -05:00
2007-06-21 21:58:59 +02:00
2007-06-21 21:58:59 +02:00