blob: 19b0c053d0806b79f09a6ced1d111eca40b0c6bb (
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
32
33
34
35
36
37
38
39
40
41
|
#!/bin/bash
. $(dirname $0)/../../include.rc
. $(dirname $0)/../../volume.rc
. $(dirname $0)/../../nfs.rc
checkdumpthread () {
local brick_pid=$(get_brick_pid $1 $2 $3)
local thread_count=$(gstack $brick_pid | grep -c _ios_dump_thread)
echo $thread_count
}
cleanup;
TEST glusterd
TEST pidof glusterd
TEST $CLI volume create $V0 $H0:$B0/${V0}0
TEST $CLI volume start $V0
TEST $CLI volume profile $V0 start
EXPECT 0 checkdumpthread $V0 $H0 $B0/${V0}0
TEST $CLI volume set $V0 diagnostics.stats-dump-interval 3
EXPECT 1 checkdumpthread $V0 $H0 $B0/${V0}0
TEST $CLI volume set $V0 diagnostics.stats-dump-interval 10
EXPECT 1 checkdumpthread $V0 $H0 $B0/${V0}0
TEST $CLI volume set $V0 diagnostics.stats-dump-interval 0
EXPECT 0 checkdumpthread $V0 $H0 $B0/${V0}0
TEST $CLI volume set $V0 diagnostics.stats-dump-interval 7
EXPECT 1 checkdumpthread $V0 $H0 $B0/${V0}0
TEST $CLI volume set $V0 diagnostics.stats-dump-interval 0
EXPECT 0 checkdumpthread $V0 $H0 $B0/${V0}0
TEST $CLI volume set $V0 diagnostics.stats-dump-interval 11
EXPECT 1 checkdumpthread $V0 $H0 $B0/${V0}0
cleanup;
|