Bug 1235127 - Disperse volume : delete operations are failing with "Directory not empty"
Summary: Disperse volume : delete operations are failing with "Directory not empty"
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: disperse
Version: rhgs-3.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Ashish Pandey
QA Contact: Bhaskarakiran
URL:
Whiteboard:
Depends On:
Blocks: 1223636
TreeView+ depends on / blocked
 
Reported: 2015-06-24 05:31 UTC by Bhaskarakiran
Modified: 2016-11-23 23:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-10 07:44:24 UTC
Embargoed:


Attachments (Terms of Use)

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


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