Bug 765525 (GLUSTER-3793) - Parallel untar/rm followed by a RM fails with ENOTEMPTY
Summary: Parallel untar/rm followed by a RM fails with ENOTEMPTY
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-3793
Product: GlusterFS
Classification: Community
Component: distribute
Version: pre-release
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: shishir gowda
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-08 11:56 UTC by shishir gowda
Modified: 2013-12-09 01:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description shishir gowda 2011-11-08 11:56:16 UTC
Run glusterfs untar on 1 client, and rm -rf in loop on another client.

After stopping rm, stop untar. Then rm -rf the dir leads to the error.

root@shishirng:/mnt/dht# rm -rf glusterfs-3.2.5qa4
rm: cannot remove `glusterfs-3.2.5qa4/rpc/rpc-transport/rdma': Directory not empty
rm: cannot remove `glusterfs-3.2.5qa4/rpc/rpc-transport/socket': Directory not empty

The problem is in the backend, firs_up_subvol has missing dirents.
gfid's, and layout's of dirs existing on both bricks are fine.

But dirents present in only 1 brick have layout set to:

root@shishirng:/gluster/glusterfs# getfattr --dump -e hex -m trusted /export/dir{3,4}/glus*/rpc/rpc-transport/rdma/src
getfattr: /export/dir3/glus*/rpc/rpc-transport/rdma/src: No such file or directory
getfattr: Removing leading '/' from absolute path names
# file: export/dir4/glusterfs-3.2.5qa4/rpc/rpc-transport/rdma/src
trusted.gfid=0x7428ed99658b4627b8856cf26b752d32
trusted.glusterfs.dht=0x000000010000000000000000ffffffff <-----

Comment 1 Anand Avati 2011-11-09 14:28:01 UTC
CHANGE: http://review.gluster.com/688 (If mkdir fails on a subvolume, layout is set taking into account) merged in release-3.2 by Vijay Bellur (vijay)

Comment 2 Anand Avati 2011-11-16 06:32:15 UTC
CHANGE: http://review.gluster.com/693 (If mkdir fails on a subvolume, layout is set taking into account) merged in master by Vijay Bellur (vijay)


Note You need to log in before you can comment on or make changes to this bug.