Bug 1235127

Summary: Disperse volume : delete operations are failing with "Directory not empty"
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Bhaskarakiran <byarlaga>
Component: disperseAssignee: Ashish Pandey <aspandey>
Status: CLOSED CURRENTRELEASE QA Contact: Bhaskarakiran <byarlaga>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: byarlaga, mzywusko, pkarampu, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-10 07:44:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1223636    

Description Bhaskarakiran 2015-06-24 05:31:49 UTC
Description of problem:
======================

Delete operations are failing with "Directory not empty" message. here is the output :

[root@rhs-client32 files]# rm -rf dir.1
rm: cannot remove `dir.1': Directory not empty
[root@rhs-client32 files]# ls dir.1 | wc -l
160
[root@rhs-client32 files]# cd dir.1
[root@rhs-client32 dir.1]# rm -rf *
[root@rhs-client32 dir.1]# ls | wc -l
160
[root@rhs-client32 dir.1]# 

[root@rhs-client29 files]# rm -rf dir.2
rm: cannot remove `dir.2': Directory not empty
[root@rhs-client29 files]# ls dir.2 | wc -l
162
[root@rhs-client29 files]# cd dir.2
[root@rhs-client29 dir.2]# rm -rf *
[root@rhs-client29 dir.2]# ls | wc -l
162
[root@rhs-client29 dir.2]# 


Version-Release number of selected component (if applicable):
=============================================================
[root@transformers ~]# gluster --version
glusterfs 3.7.1 built on Jun 18 2015 12:26:09
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
[root@transformers ~]# 

How reproducible:
=================
Seen once

Steps to Reproduce:
===================
Create huge number of files and directories in around 100000 replacing one of the brick. Trigger full heal and once the IO is complete. Delete the contents from the mount.

Actual results:
===============
Directory not empty and delete operations fail

Expected results:


Additional info:
-===============
Attaching the sosreport of the client

Comment 5 Ashish Pandey 2015-07-08 10:53:34 UTC
I tested this bug for 3.7.1-7 and it is working fine. No "directory is not empty" message on mount point during "rm -rf *"
Moving it to fixed state