| Summary: | Parallel untar/rm followed by a RM fails with ENOTEMPTY | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | shishir gowda <sgowda> |
| Component: | distribute | Assignee: | shishir gowda <sgowda> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | pre-release | CC: | gluster-bugs, nsathyan |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | --- | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
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) 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) |
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 <-----