From acf8cfdf698aa3ebe42ed55bba8be4f85b751c29 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Thu, 20 Jun 2013 14:06:04 +0530 Subject: Revert "storage/posix: Remove the interim fix that handles the gfid race" This reverts commit 97807e75956a2d240282bc64fab1b71762de0546. In a distribute or distribute-replica volume, this fix is required to prevent gfid mis-match due to race issues. test script bug-767585-gfid.t needs a sleep of 2, cause after setting backend gfid directly, we try to heal, and with this fix, we do not allow setxattr of gfid within creation of 1 second if not created by itself Change-Id: Ie3f4b385416889fd5de444638a64a7eaaf24cd60 BUG: 951195 Signed-off-by: shishir gowda Reviewed-on: http://review.gluster.org/5240 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- tests/bugs/bug-767585-gfid.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 tests/bugs/bug-767585-gfid.t (limited to 'tests/bugs/bug-767585-gfid.t') diff --git a/tests/bugs/bug-767585-gfid.t b/tests/bugs/bug-767585-gfid.t old mode 100644 new mode 100755 index 0cb6e3cb..49cf7423 --- a/tests/bugs/bug-767585-gfid.t +++ b/tests/bugs/bug-767585-gfid.t @@ -12,7 +12,6 @@ gfid1="0x8428b7193a764bf8be8046fb860b8993" gfid2="0x85ad91afa2f74694bf52c3326d048209" cleanup; - TEST glusterd TEST pidof glusterd TEST $CLI volume create $V0 replica 2 $H0:$B0/${V0}0 $H0:$B0/${V0}1 @@ -25,6 +24,8 @@ touch $B0/${V0}0/c $B0/${V0}1/c TEST setfattr -n trusted.gfid -v $gfid1 $B0/${V0}0/b TEST setfattr -n trusted.gfid -v $gfid2 $B0/${V0}1/c +sleep 2 + cd $M0 TEST ls -l a TEST ls -l b -- cgit