Bug 762552 (GLUSTER-820)

Summary: distribute directory rename problem when one subvol is down
Product: [Community] GlusterFS Reporter: Krishna Srinivas <krishna>
Component: coreAssignee: Raghavendra Bhat <rabhat>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: mainlineCC: amarts, gluster-bugs, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTA Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Krishna Srinivas 2010-04-13 17:33:04 UTC
distribute: directory rename creates problem when one subvol is down. i.e when the subvol comes back up old directory is seen and when we do rm -rf on it we can get ENOEMPTY because of existing subdirs on only that subvolume. (ticket 1781)

do not allow dir renames when one of the subvol is down or do a "restore" operation when rename fails on one subvol.

Comment 1 Anand Avati 2010-05-08 10:37:19 UTC
PATCH: http://patches.gluster.com/patch/3227 in master (Check whether a server is down before calling rename on the directory)

Comment 2 Anand Avati 2010-05-08 10:37:49 UTC
PATCH: http://patches.gluster.com/patch/3226 in release-3.0 (Check whether a server is down before calling rename on the directory)

Comment 3 Raghavendra Bhat 2010-06-08 03:10:09 UTC
Checked with 3.0.5rc4 and 3.0.5rc5. It has been fixed. Directory cannot be renamed when one of the servers is dowm.