From b319d712e97e1074cc6030220d00970d1262458b Mon Sep 17 00:00:00 2001 From: Anuradha Date: Thu, 11 Jun 2015 14:58:05 +0530 Subject: cluster/afr : set pending xattrs for replaced brick Backport of: http://review.gluster.org/10448/ & http://review.gluster.org/11416 This patch is part two change to prevent data loss in a replicate volume on doing a replace-brick commit force operation. Problem: After doing replace-brick commit force, there is a chance that self heal might happen from the replaced (sink) brick rather than the source brick leading to data loss. Solution: Mark pending changelogs on afr children for the replaced afr-child so that heal is performed in the correct direction. Credits to Ravishankar N for patch 11416. Change-Id: Icb9807e49b4c1c4f1dcab115318d9a58ccf95675 BUG: 1232173 Reviewed-on: http://review.gluster.org/10448 Reviewed-by: Pranith Kumar Karampuri Tested-by: NetBSD Build System Reviewed-by: Krutika Dhananjay Signed-off-by: Anuradha Talur Reviewed-on: http://review.gluster.org/11254 Tested-by: Gluster Build System --- tests/volume.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/volume.rc') diff --git a/tests/volume.rc b/tests/volume.rc index 47ca722d8be..ec77e602fda 100644 --- a/tests/volume.rc +++ b/tests/volume.rc @@ -249,7 +249,7 @@ function gf_gfid_xattr_to_str { function get_text_xattr { local key=$1 local path=$2 - getfattr -d -m. -e text $path 2>/dev/null | grep $key | cut -f2 -d'=' + getfattr -d -m. -e text $path 2>/dev/null | grep -a $key | cut -f2 -d'=' } function gf_check_file_opened_in_brick { -- cgit