summaryrefslogtreecommitdiffstats
path: root/tests/bugs/replicate/bug-1365455.t
blob: 1953e2a9327ca50e6cf82bd74ae8132c070849c2 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash

. $(dirname $0)/../../include.rc
. $(dirname $0)/../../volume.rc

function check_size
{
    for i in {1..10}; do
        size1=`stat -c %s $B0/${V0}0/tmp$i`
        size2=`stat -c %s $B0/${V0}1/tmp$i`
        if [[ $size1 -eq 0 ]] || [[ $size2 -eq 0 ]] || [[ $size1 -ne $size2 ]]; then
            return 1
        fi
    done

    return 0
}

cleanup;
TEST glusterd
TEST pidof glusterd

TEST $CLI volume create $V0 $H0:$B0/${V0}0;

TEST $CLI volume start $V0;

TEST glusterfs -s $H0 --volfile-id $V0 $M0

for i in {1..10}
do
        echo abc > $M0/tmp$i
done


# Add Another brick
TEST $CLI volume add-brick $V0 replica 2 $H0:$B0/${V0}1

#Check if self heal daemon has come up
EXPECT_WITHIN $PROCESS_UP_TIMEOUT "Y" glustershd_up_status

#Check if self heal daemon is able to see all bricks
EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 0
EXPECT_WITHIN $CHILD_UP_TIMEOUT "1" afr_child_up_status_in_shd $V0 1

# Wait for heal to complete
EXPECT_WITHIN $HEAL_TIMEOUT "^0$" get_pending_heal_count $V0

# Check if entry-heal has happened
TEST diff <(ls $B0/${V0}0 | sort) <(ls $B0/${V0}1 | sort)

#Check size of files on bricks
TEST check_size

cleanup;
3 -0700'>2011-06-142-1/+15 * pump: cleanup potential dict related memory corruption.v3.1.5qa2Krishnan Parthasarathi2011-06-101-1/+2 * syncop: Increase stack size for deep call stack.Krishnan Parthasarathi2011-06-101-1/+1 * libglusterfs/dict: Donot perform NULL check on data in dict_foreach.Junaid2011-04-121-2/+2 * core: Add list_append_initShehjar Tikoo2011-04-111-0/+33 * Solaris: redefine O_DIRECTORY flag to the correct valueshishir gowda2011-03-221-1/+1 * fuse: have the 'used' flag set in graph when used for first timev3.1.3qa7Amar Tumballi2011-03-091-0/+2 * libglusterfs: add 'graph_id' in loggingAmar Tumballi2011-03-093-5/+10 * Fix solaris build failure in latest gitshishir gowda2011-03-091-3/+3 * build fixes in mac os xv3.1.3qa5shishir gowda2011-03-072-2/+7 * Solaris xattr support for symlink and special files.v3.1.3qa3shishir gowda2011-03-047-18/+247 * Stop building uuid test programVijay Bellur2011-02-281-1/+1 * libglusterfs/dict.c: Whitespace cleanupVijay Bellur2011-02-281-217/+219 * libglusterfs/xlator.c: whitespace cleanupVijay Bellur2011-02-281-55/+51 * send the CHILD_DOWN event also to fuseAmar Tumballi2011-02-221-2/+2 * core: have framework for GF_EVENT_CHILD_MODIFIED notifcation eventAnand Avati2011-02-222-0/+2 * libglusterfs: Enable assert() and memory accounting with DEBUGVijay Bellur2011-02-212-3/+12 * libglusterfs/dict: memcpy() data_t in unserialize.Vikas Gorur2011-02-171-2/+2 * Check correct variable after function call.Sachidananda2011-02-171-9/+8 * cluster/afr: Perform self-heal as rootPranith K2011-02-081-0/+16 * Logging : Use of uuid_utoa and uuid_utoa_r.Gaurav2011-02-041-6/+2 * Logging : New uuid to string conversion functions.Gaurav2011-02-044-5/+72 * Move hostname, ip address validating functions to libglusterfs.Sachidananda2011-01-273-121/+126 * free GF_CALLOCed memory by GF_FREE instead of FREERaghavendra Bhat2011-01-271-2/+2 * implement "--client-pid" option which can forcibly set the pid value in messa...Csaba Henk2011-01-271-0/+2 * adding libxlator, to ensure proper client side aggregation of marks by cluste...Kaushik BV2011-01-271-1/+2 * features/access-control: skip access-tests if the call is from fusePranith K2011-01-262-0/+14 * logging: reintroduce build warning for mismatching format strings and parametersAnand Avati2011-01-061-0/+6 * logging: fix format warningsAmar Tumballi2011-01-061-1/+1 * xlator.c: Unrefing inode's on error in loc_copy.Mohammed Junaid Ahmed2010-12-291-0/+7 * glusterd,cli: print single error message on failurePranith K2010-12-271