[Bugs] [Bug 1231195] New: rm -rf throws 'Is a directory' error for few directories while add-brick operation is done

bugzilla at redhat.com bugzilla at redhat.com
Fri Jun 12 11:25:23 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1231195

            Bug ID: 1231195
           Summary: rm -rf throws 'Is a directory' error for few
                    directories while add-brick operation is done
           Product: GlusterFS
           Version: mainline
         Component: distribute
          Assignee: bugs at gluster.org
          Reporter: sabansal at redhat.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Description of problem:
rm -rf throws 'Is a directory' error for few directories while add-brick
operation is done.

Version-Release number of selected component (if applicable):


How reproducible:
Frequent

Steps to Reproduce:
1.Create a distribute volume, fuse mount the volume. 
2.Start rm -rf on the mount point.
3.While the rm operation is going on, add-brick to the volume.

Actual results:
rm starts throwing 'Is a directory' error for a few directories and does not
delete them.

Expected results:
rm -rf should proceede without errors.

Observation:
A lookup is issued(as a part of the rm operation) on say 'child_dir'. Since
some subvols do not have the directory created, a selfheal is triggered.
However due to the on-going rm operation it may so happen that the parent
directory of 'child_dir' on a particular subvol may be deleted. Hence selfheal
returns ESTALE error and an unlink on the directory is done. This makes the
application throw 'Is a directory' error for that 'child_dir'.

Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list