blob: deac6d0a7ce4ffb72471b9937f4d091a59c31f24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$Id$
This program tests the behavior of FT aware client when there
is a fault in the server.
First, you can test the behavior of client when it works with
a simple single profile IOR (not IOGR).
To test server crashing down (aborting) in the middle of the RPC:
$./server -o file1.ior -k KEY1
$./Manager -a file://file1.ior -k KEY1 -c g.ior
To test server gracefully shutting down in the middle of the RPC:
$./server -o file1.ior -k KEY1
$./Manager -a file://file1.ior -k KEY1 -c g.ior -s
You can also test behavior of client when using IOGR with two servers
by supplying -g as the option to Manager.
To test servers crashing down (aborting) in the middle of the RPC:
$./server -o file1.ior -k KEY1
$./server -o file2.ior -k KEY2
$./Manager -a file://file1.ior -k KEY1 -b file://file2.ior -l KEY2 -c g.ior -g
To test one of two serversshutting down in the middle of the RPC:
$./server -o file1.ior -k KEY1
$./server -o file2.ior -k KEY2
$./Manager -a file://file1.ior -k KEY1 -b file://file2.ior -l KEY2 -c g.ior -g -s
The complete test can be run by run_test.pl.
The script exits with error code != 0 in case of error.
|