forked from gluster/glusterfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
features/index: Don't delete current xattrop index.
Delete the base entry in indices/xattrop only when it is stale. Change-Id: I675c1510dd8293d068e31b552b0de48f50aac658 BUG: 1101647 Signed-off-by: Ravishankar N <ravishankar@redhat.com> Reviewed-on: http://review.gluster.org/8119 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Tested-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
- Loading branch information
Showing
4 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/bash | ||
|
||
. $(dirname $0)/../include.rc | ||
. $(dirname $0)/../volume.rc | ||
. $(dirname $0)/../afr.rc | ||
|
||
cleanup; | ||
|
||
TEST glusterd | ||
TEST pidof glusterd | ||
TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}{1,2}; | ||
TEST $CLI volume start $V0; | ||
TEST glusterfs --volfile-id=/$V0 --volfile-server=$H0 $M0 --attribute-timeout=0 --entry-timeout=0 | ||
EXPECT_WITHIN 20 "Y" glustershd_up_status | ||
|
||
#Create base entry in indices/xattrop and indices/base_indices_holder | ||
echo "Data">$M0/file | ||
|
||
TEST $CLI volume heal $V0 | ||
#Entries from indices/xattrop and indices/base_indices_holder should not be cleared after a heal. | ||
EXPECT 1 count_sh_entries $B0/$V0"1" | ||
EXPECT 1 count_sh_entries $B0/$V0"2" | ||
|
||
TEST kill_brick $V0 $H0 $B0/${V0}2 | ||
echo "More data">>$M0/file | ||
|
||
EXPECT 1 echo `$CLI volume heal $V0 statistics heal-count|grep "Number of entries:"|head -n1|awk '{print $4}'` | ||
|
||
cleanup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters