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

bugzilla at redhat.com bugzilla at redhat.com
Tue Jan 31 04:09:49 UTC 2017


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

Raghavendra G <rgowdapp at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rgowdapp at redhat.com



--- Comment #3 from Raghavendra G <rgowdapp at redhat.com> ---
(In reply to Sakshi from comment #0)
> 
> 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'.

The flaw in this argument is that 
1.lookup heal is issued as part of "rmdir child_dir" 
2."rmdir parent_dir" won't be issued till "rmdir child_dir" is complete. 

So, 1 and 2 can't happen parallely. But the RCA requires that they happen
parallely. Hence I think the RCA is something different.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=FJaXOotWSx&a=cc_unsubscribe


More information about the Bugs mailing list