2
# Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved.
2
# Copyright (C) 2008 MySQL AB, 2008 Sun Microsystems, Inc
4
# This program is free software; you can redistribute it and/or
5
# modify it under the terms of the GNU General Public License as
6
# published by the Free Software Foundation; version 2 of the
4
# This program is free software; you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation; version 2 of the License.
9
8
# This program is distributed in the hope that it will be useful,
10
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
11
# GNU General Public License for more details.
14
13
# You should have received a copy of the GNU General Public License
15
14
# along with this program; if not, write to the Free Software
16
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24
22
# * stop the first backend and verifies that queries against it fail
25
23
# * checks that new connects end up on the second backend
27
connect (conn1,127.0.0.1,root,,,$PROXY_PORT);
28
connect (conn2,127.0.0.1,root,,,$PROXY_PORT);
25
connect (conn1,127.0.0.1,root,,,14040);
26
connect (conn2,127.0.0.1,root,,,14040);
40
38
# check if we end up on the the right backend
41
connect (conn1,127.0.0.1,root,,,$PROXY_PORT);
39
connect (conn1,127.0.0.1,root,,,14040);
45
# now kill the backend
43
# now kill the backend and wait until it is down
49
47
# ... and this should fail now as the backend is gone
58
connect (conn1,127.0.0.1,root,,,$PROXY_PORT);
58
connect (conn1,127.0.0.1,root,,,14040);